app/Providers/AppServiceProvider.php
/**
     * Bootstrap any application services.
     *
     * @return void
     */
Bootstrap any application services.
@return void
Bootstrap any application services . @return void
public function boot()
    {
        Schema::defaultStringLength(191);
        Paginator::useBootstrap();
        Gate::define('admin', function(User $user){
            return $user->is_admin;
        });
    }
public function boot ( ) { Schema :: defaultStringLength ( 191 ) ; Paginator :: useBootstrap ( ) ; Gate :: define ( 'admin' , function ( User $ user ) { return $ user -> is_admin ; } ) ; }
Bootstrap any application services.
Bootstrap any application services .