Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit e6eec2d

Browse files
committed
Fix laravel route class
1 parent a7efae6 commit e6eec2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Presets/Preset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected static function scaffoldAuth()
120120

121121
file_put_contents(
122122
base_path('routes/web.php'),
123-
"Auth::routes();\n\nRoute::get('/home', 'App\Http\Controllers\HomeController@index')->name('home');\n\n",
123+
"Auth::routes();\n\nRoute::get('/home', [\App\Http\Controllers\HomeController::class, 'index'])->name('home');\n\n",
124124
FILE_APPEND
125125
);
126126
}

0 commit comments

Comments
 (0)