classes/ServiceProvider.php
public function bootAuth()
    {
        // Inject Decoy's auth config
        Config::set('auth.guards.decoy', [
            'driver'   => 'session',
            'provider' => 'decoy',
        ]);

        Config::set('auth.providers.decoy', [
            'driver' => 'eloquent',
            'model'  => Models\Admin::class,
        ]);

        Config::set('auth.passwords.decoy', [
            'provider' => 'decoy',
            'email'    => 'decoy::emails.reset',
            'table'    => 'password_resets',
            'expire'   => 60,
        ]);

        // Point to the Gate policy
        $this->app[Gate::class]->define('decoy.auth', config('decoy.core.policy'));
    }
public function bootAuth()
    {
        // Inject Decoy's auth config
        Config::set('auth.guards.decoy', [
            'driver'   => 'session',
            'provider' => 'decoy',
        ]);

        Config::set('auth.providers.decoy', [
            'driver' => 'eloquent',
            'model'  => Models\Admin::class,
        ]);

        Config::set('auth.passwords.decoy', [
            'provider' => 'decoy',
            'email'    => 'decoy::emails.reset',
            'table'    => 'password_resets',
            'expire'   => 60,
        ]);

        // Point to the Gate policy
        $this->app[Gate::class]->define('decoy.auth', config('decoy.core.policy'));
    }
public function bootAuth ( ) { // Inject Decoy's auth config Config :: set ( 'auth.guards.decoy' , [ 'driver' => 'session' , 'provider' => 'decoy' , ] ) ; Config :: set ( 'auth.providers.decoy' , [ 'driver' => 'eloquent' , 'model' => Models \ Admin :: class , ] ) ; Config :: set ( 'auth.passwords.decoy' , [ 'provider' => 'decoy' , 'email' => 'decoy::emails.reset' , 'table' => 'password_resets' , 'expire' => 60 , ] ) ; // Point to the Gate policy $ this -> app [ Gate :: class ] -> define ( 'decoy.auth' , config ( 'decoy.core.policy' ) ) ; }
Boot Decoy's auth integration

@return void
Boot Decoy s auth integration