2016-10-07 5 views
0

を使用してLaravelでサポートされていない[推進]私はlaravelのデフォルトの認証ドライバを変更雄弁リンクの下で与えられた命令を使用してPropelのへ。無効な引数の例外、ドライバはPropel ORM

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; 
    } 
} 

しかし、それはまだ私に次のエラーを与える:

enter image description here

私はlaravel 5を使用しています。この問題に関する助けをいただければ幸いです。 ありがとうございます。

+0

'Propel \ PropelLaravel \ GeneratorServiceProvider :: class'、 ' Propel \ PropelLaravel \ RuntimeServiceProvider :: class'をconfig/app.phpに追加しましたか? –

+0

申し訳ありません..私はその部分を追加しました.. :) –

答えて

0

バンドルのドキュメントによると、あなたが追加する必要があります。

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

に:

config/app.php 

providers配列へ。

関連する問題