consolidate to a single method

This commit is contained in:
Taylor Otwell 2020-07-14 14:00:47 -05:00
parent 880cc1d3d8
commit a9abc85301
1 changed files with 7 additions and 15 deletions

View File

@ -23,21 +23,13 @@ class RouteServiceProvider extends ServiceProvider
*/ */
public function boot() public function boot()
{ {
// $this->routes(function () {
} Route::middleware('web')
->group(base_path('routes/web.php'));
/** Route::prefix('api')
* Define the routes for the application. ->middleware('api')
* ->group(base_path('routes/api.php'));
* @return void });
*/
public function map()
{
Route::middleware('web')
->group(base_path('routes/web.php'));
Route::prefix('api')
->middleware('api')
->group(base_path('routes/api.php'));
} }
} }