Skip to content

Commit 8a65330

Browse files
Refactor route to use Route::view() method
1 parent 06bee88 commit 8a65330

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

routes/web.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44

55
use Illuminate\Support\Facades\Route;
66

7-
Route::get('/', function () {
8-
return view('welcome');
9-
});
7+
Route::view('/', 'welcome');

0 commit comments

Comments
 (0)