2016-10-07 2 views
0

을 사용하여 Laravel에서 지원하지 [추진] 내가 laravel 기본 인증 드라이버를 변경 웅변 아래 링크에서 제공하는 지침의 사용과 추진합니다.잘못된 인수 예외, 드라이버가 추진 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 배열.