Skip to content

Commit af4c178

Browse files
committed
1 parent 26cab6a commit af4c178

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routes/web.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,13 +497,14 @@
497497
['get', 'post'],
498498
'/navbar/search',
499499
'App\Http\Controllers\SearchController@showNavbarSearchResults'
500+
500501
);
501502

502503
require __DIR__.'/auth.php';
503504

504505
Auth::routes();
505506

506-
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
507+
Route::get('/home', 'App\Http\Controllers\HomeController@index')->middleware(['auth'])->name('home');
507508

508509
Livewire::setUpdateRoute(function ($handle) {
509510
return Route::post('/livewire/update', $handle);

0 commit comments

Comments
 (0)