diff options
author | Mateja <mail@matejamaric.com> | 2020-10-17 01:16:57 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-10-17 01:16:57 +0200 |
commit | 871c7ff1dfe41025430ab3c4b0cd41d46bd8f8dd (patch) | |
tree | 62daf3bb08ee71075835b3e046d3ad68403bb0d0 /routes/web.php | |
parent | 9ea3e7e0e1de349fb0a322d0176e16f4d31d609f (diff) | |
download | yota-laravel-871c7ff1dfe41025430ab3c4b0cd41d46bd8f8dd.tar.gz yota-laravel-871c7ff1dfe41025430ab3c4b0cd41d46bd8f8dd.zip |
Active navbar links with named routes.
Diffstat (limited to 'routes/web.php')
-rw-r--r-- | routes/web.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routes/web.php b/routes/web.php index d83200b..6cc36ad 100644 --- a/routes/web.php +++ b/routes/web.php @@ -30,8 +30,8 @@ use App\Http\Controllers\PagesController; //return view('about'); //}); -Route::get('/', [PagesController::class, 'index']); -Route::get('/services', [PagesController::class, 'services']); +Route::get('/', [PagesController::class, 'index'])->name('home'); +Route::get('/services', [PagesController::class, 'services'])->name('services'); -Route::get('/about', [PagesController::class, 'about']); +Route::get('/about', [PagesController::class, 'about'])->name('about'); //Route::get('/about', 'App\Http\Controllers\PagesController@about'); |