Skip to content

Instantly share code, notes, and snippets.

@deleugpn
Created June 23, 2018 11:25
Show Gist options
  • Save deleugpn/ce28ff65f9acc27230e6fdd94de95027 to your computer and use it in GitHub Desktop.
Save deleugpn/ce28ff65f9acc27230e6fdd94de95027 to your computer and use it in GitHub Desktop.
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
/**
* Define the routes for the application.
*
* @return void
*/
public function map()
{
$this->mapModulesRoutes();
}
protected function mapModulesRoutes()
{
// Use the middleware 'web' if you're writing a Web Application
Route::middleware('api')
->group(base_path('routes/modules.php'));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment