0

我使用以下链接中给出的说明更改了 laravel 默认身份验证驱动程序eloquent推动。

https://packagist.org/packages/propel/propel-laravel

授权文件

'driver' => 'propel',

'model' => 'MstUser',

MstUser.php

<?php

use Base\MstUser as BaseMstUser;
use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;

/**
 * Skeleton subclass for representing a row from the 'mst_user' table.
 *
 *
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 *
 */
class MstUser extends BaseMstUser implements AuthenticatableContract, CanResetPasswordContract
{
    use Authenticatable, CanResetPassword;

    public function getAuthIdentifier()
    {
        return $this->id;
    }
}

但它仍然给我以下错误:

在此处输入图像描述

我正在使用 laravel 5。有关此问题的任何帮助将不胜感激。谢谢你。

4

1 回答 1

0

根据捆绑文档,您必须添加:

Propel\PropelLaravel\GeneratorServiceProvider::class,
Propel\PropelLaravel\RuntimeServiceProvider::class,

到:

config/app.php

providers数组。

于 2016-10-07T08:57:13.343 回答