aboutsummaryrefslogtreecommitdiff
path: root/routes/web.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-17 01:16:57 +0200
committerMateja <mail@matejamaric.com>2020-10-17 01:16:57 +0200
commit871c7ff1dfe41025430ab3c4b0cd41d46bd8f8dd (patch)
tree62daf3bb08ee71075835b3e046d3ad68403bb0d0 /routes/web.php
parent9ea3e7e0e1de349fb0a322d0176e16f4d31d609f (diff)
downloadyota-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.php6
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');