- Create a folder named api in routes
- Copy routes\api.php into the api folder
- Rename api.php to v1.php
-
Change below app\Providers\RouteServiceProvers.php
Route::prefix('api') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/api.php'));
into
// example route will be /api/v1/users Route::prefix('api/v1') // add a version number ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/api/v1.php')); // update the path to the api routes
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)