title: How to add multiple route file using RouteServiceProvider in laravel
body: <p>I want to create module wise route file and load all route files using RouteServiceProvider mapApiRoutes(). I have created category.php file and admin.php file which contains routes within it. Now i want to load this two file's routes in api.php file.</p>
  
  <p>Below is code that i am using to do this but it is not working. it only process routes in admin.php. when i use route of category.php it shows me error of "Sorry, the page you are looking for could not be found.". Thank for help in advance.</p>
  
  <pre><code>protected function mapApiRoutes()
  {
      Route::prefix('api')
           -&gt;middleware('api')
           -&gt;namespace($this-&gt;namespace)
           -&gt;group(
                  base_path('routes/admin.php'),
                  base_path('routes/category.php'),
                  base_path('routes/api.php')
                );
  }
  </code></pre>