src/Defender/Providers/DefenderServiceProvider.php
private function setUserModelConfig()
    {
        if (config('defender.user_model') == '') {
            if (str_contains($this->app->version(), '5.1')) {
                return config(['defender.user_model' => $this->app['auth']->getProvider()->getModel()]);
            }

            return config(['defender.user_model' => $this->app['auth']->guard()->getProvider()->getModel()]);
        }
    }
private function setUserModelConfig()
    {
        if (config('defender.user_model') == '') {
            if (str_contains($this->app->version(), '5.1')) {
                return config(['defender.user_model' => $this->app['auth']->getProvider()->getModel()]);
            }

            return config(['defender.user_model' => $this->app['auth']->guard()->getProvider()->getModel()]);
        }
    }
private function setUserModelConfig ( ) { if ( config ( 'defender.user_model' ) == '' ) { if ( str_contains ( $ this -> app -> version ( ) , '5.1' ) ) { return config ( [ 'defender.user_model' => $ this -> app [ 'auth' ] -> getProvider ( ) -> getModel ( ) ] ) ; } return config ( [ 'defender.user_model' => $ this -> app [ 'auth' ] -> guard ( ) -> getProvider ( ) -> getModel ( ) ] ) ; } }
Set the default configuration for the user model.
Set the default configuration for the user model .