Laravel Multiple Routes Files
In this example will make two api routes files for Admin and User: Step 1: Create Route Files in routes directory Create two route files: admin.api.php and user.api.php. These files will contain the respective API routes. Step 2: Edit RouteServiceProvider.php In the RouteServiceProvider class, update the mapApiRoutes() method to include the new route files. Here’s […]
Laravel Multiple Routes Files Read More »