how to add page link in laravel

Solutions on MaxInterview for how to add page link in laravel by the best coders in the world

showing results for - "how to add page link in laravel"
Raphaël
25 Jan 2017
1At first give a name to your route and then use it in then use it in anchar tag
2
3Route::get('/', function () {
4    return view('welcome');
5})->name('welcome');
6Route::get('/about', 'PagesController@about')->name('about');
7
8Now you can use it in any page to refer them. like in contact page
9
10<html>
11..
12....
13<a href="{{route('welcome')}}">Home</a>
14<a href="{{route('about')}}">About</a>