src/Helpers/User.php
public function getUserModel()
    {
        /* Check the app's auth config, first */
        $model = Config::get('auth.model');
        if (class_exists($model)) {
            return $model;
        }
        /* That didn't work, so let's try our fallback.  First get the namespace */
        $ns = $this->getAppNamespace();
        if ($ns) {
            /* Try laravel default convention (models in the app folder). */
            $model = $ns . 'User';
            if (class_exists($model)) {
                return $model;
            }
            /* Try secondary convention of having a models directory. */
            $model = $ns . 'Models\User';
            if (class_exists($model)) {
                return $model;
            }
        }
        return false;
    }
public function getUserModel()
    {
        /* Check the app's auth config, first */
        $model = Config::get('auth.model');
        if (class_exists($model)) {
            return $model;
        }
        /* That didn't work, so let's try our fallback.  First get the namespace */
        $ns = $this->getAppNamespace();
        if ($ns) {
            /* Try laravel default convention (models in the app folder). */
            $model = $ns . 'User';
            if (class_exists($model)) {
                return $model;
            }
            /* Try secondary convention of having a models directory. */
            $model = $ns . 'Models\User';
            if (class_exists($model)) {
                return $model;
            }
        }
        return false;
    }
public function getUserModel ( ) { /* Check the app's auth config, first */ $ model = Config :: get ( 'auth.model' ) ; if ( class_exists ( $ model ) ) { return $ model ; } /* That didn't work, so let's try our fallback.  First get the namespace */ $ ns = $ this -> getAppNamespace ( ) ; if ( $ ns ) { /* Try laravel default convention (models in the app folder). */ $ model = $ ns . 'User' ; if ( class_exists ( $ model ) ) { return $ model ; } /* Try secondary convention of having a models directory. */ $ model = $ ns . 'Models\User' ; if ( class_exists ( $ model ) ) { return $ model ; } } return false ; }
Gets the user model if found.
@return bool|string
Gets the user model if found .