From 871c7ff1dfe41025430ab3c4b0cd41d46bd8f8dd Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 17 Oct 2020 01:16:57 +0200 Subject: Active navbar links with named routes. --- routes/web.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'routes/web.php') 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'); -- cgit v1.2.3