src/PermissionsServiceProvider.php
/**
     * Bootstrap the application services.
     *
     * @return void
     */
Bootstrap the application services.
@return void
Bootstrap the application services . @return void
public function boot()
    {
        $this->registerPolicies();
        $this->loadViewsFrom(__DIR__.'/Views', 'rb28dett_permissions');
        $this->loadTranslationsFrom(__DIR__.'/Translations', 'rb28dett_permissions');
        if (!$this->app->routesAreCached()) {
            require __DIR__.'/Routes/web.php';
        }
        $this->loadMigrationsFrom(__DIR__.'/Migrations');
        PermissionsChecker::check($this->permissions);
    }
public function boot ( ) { $ this -> registerPolicies ( ) ; $ this -> loadViewsFrom ( __DIR__ . '/Views' , 'rb28dett_permissions' ) ; $ this -> loadTranslationsFrom ( __DIR__ . '/Translations' , 'rb28dett_permissions' ) ; if ( ! $ this -> app -> routesAreCached ( ) ) { require __DIR__ . '/Routes/web.php' ; } $ this -> loadMigrationsFrom ( __DIR__ . '/Migrations' ) ; PermissionsChecker :: check ( $ this -> permissions ) ; }
Bootstrap the application services.
Bootstrap the application services .
// Make sure the permissions are OK