From bd5ceb638042b7d4dcd488efaf841ba76eadbaa2 Mon Sep 17 00:00:00 2001 From: Zak Nesler <7189795+zaknesler@users.noreply.github.com> Date: Tue, 8 Sep 2020 13:26:01 -0400 Subject: [PATCH] Set namespace when registering auth routes --- src/TailwindPreset.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); }