diff --git a/src/TailwindPreset.php b/src/TailwindPreset.php index db3a8d0..df7a916 100644 --- a/src/TailwindPreset.php +++ b/src/TailwindPreset.php @@ -174,7 +174,9 @@ protected static function installAuthRoutes() file_put_contents( base_path('routes/web.php'), - "\nAuth::routes();\n\nRoute::get('/home', 'HomeController@index')->name('home');\n", + "\nRoute::namespace('App\Http\Controllers')->group(function () {\n". + " Auth::routes();\n\n". + "Route::get('/home', 'HomeController@index')->name('home');\n});\n", FILE_APPEND ); }