Неверное исключение аргумента, драйвер [propel] не поддерживается в Laravel с использованием Propel ORM
Я изменил драйвер аутентификации по умолчанию laravel eloquent на propel с использованием инструкций, приведенных в ссылке ниже.
https://packagist.org/packages/propel/propel-laravel
auth.php
'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. Любая помощь по этой проблеме будет принята с благодарностью. Спасибо.
1 ответ
Согласно документации к комплекту необходимо добавить:
Propel\PropelLaravel\GeneratorServiceProvider::class,
Propel\PropelLaravel\RuntimeServiceProvider::class,
к:
config/app.php
к providers
массив.