Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
Set namespace when registering auth routes
Browse files Browse the repository at this point in the history
  • Loading branch information
zaknesler authored Sep 8, 2020
1 parent 2dd56f1 commit bd5ceb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TailwindPreset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down

0 comments on commit bd5ceb6

Please sign in to comment.