*/ namespace MillionsMissingFrance\FreescoutRestrictedCustomers; use Illuminate\Support\Facades\Route; use Illuminate\Support\ServiceProvider; class FreescoutRestrictedCustomersServiceProvider extends ServiceProvider { public function register() { // } public function boot() { $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); $this->registerRoutes(); $this->loadViewsFrom(__DIR__.'/../resources/views', 'freescout-restricted-customers'); } protected function registerRoutes() { Route::group($this->routeConfiguration(), function () { $this->loadRoutesFrom(__DIR__ . '/../routes/web.php'); }); } protected function routeConfiguration() { return [ 'middleware' => ['web', 'auth', 'roles'], ]; } }