📜  如何在 laravel 中添加页面链接 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:47.734000             🧑  作者: Mango

代码示例1
At first give a name to your route and then use it in then use it in anchar tag

Route::get('/', function () {
    return view('welcome');
})->name('welcome');
Route::get('/about', 'PagesController@about')->name('about');

Now you can use it in any page to refer them. like in contact page


..
....
Home
About