sigh kin
sigh kin

Reputation: 27

How to give my view page into html tag in laravel

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

Answers (1)

Giacomo M
Giacomo M

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

Related Questions