Corcel\Providers\AuthUserProvider::createModel PHP Method

createModel() protected method

Create a new instance of the model.
protected createModel ( ) : Model
return Illuminate\Database\Eloquent\Model
    protected function createModel()
    {
        if ($this->config && isset($this->config['model'])) {
            $class = '\\' . ltrim($this->config['model'], '\\');
            return new $class();
        }
        return new User();
    }