我使用以下链接中给出的说明更改了 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。有关此问题的任何帮助将不胜感激。谢谢你。