Reputation: 27
I have a laravel website, my route is like following:
Route::get('/', function () {
// Session::flush();
return view('welcome');
});
Route::resource('register','RegController');
Route::get('formdata', function () {
// Session::flush();
return view('formdata');
});
I have an html link like this:
<a href="" id="logo"><img src="{{ asset('web\img\TEIA Logo.png') }}" alt="" width="300" height="135"></a>
What should I insert into href so I can get the corresponding view page?
Upvotes: 0
Views: 71
Reputation: 4711
Just use this:
<a href="{!! url('/') !!}" id="logo"><img src="{{ asset('web\img\TEIA Logo.png') }}" alt="" width="300" height="135"></a>
Upvotes: 1