app/Providers/AuthServiceProvider.php
/**
     * Register any authentication / authorization services.
     *
     * @return void
     */
Register any authentication / authorization services.
@return void
Register any authentication / authorization services . @return void
public function boot()
    {
        }
public function boot ( ) { }
Register any authentication / authorization services.
Register any authentication / authorization services .
// $this->registerPolicies(); // Gate::before(function(User $user) { //     //verifica se ele é administrador geral, se for pode TUDO //     if ( $user->isAdminGeral() ) //         return true; // }); // $sistema_id = config('constants.geral.sistema_id'); // $perfis = Perfil::with('usuarios_perfis')->where('sistema_id', $sistema_id)->get(); // //dd( $perfis->pluck('usuarios_perfis')->pluck('perfil_id')->filter()->toArray() ); // //$permissoes = Usuarios_perfil::where('user_id', )->get(); // foreach( $perfis as $perfil ) : //     Gate::define($perfil->perfil, function(User $user) use ($perfil) { //         return $user->meuPerfil($perfil->id); //     }); // endforeach;