ollieread를 사용하여 laravel에서 다중 인증 로그인을 수행하는 방법을 묻고 싶습니다. 여기에 다음 로그인 Laravel의 Multiauth
'multi' => array(
'account' => array(
'driver' => 'eloquent',
'model' => 'users'
),
'user' => array(
'driver' => 'database',
'table' => 'admin'
)
),
'reminder' => array(
'email' => 'emails.auth.reminder',
'table' => 'password_reminders',
'expire' => 60,
),
auth.php
내 코드입니다, 이것은 내가 어떻게$attributes
을 정의 할 수 해달라고 내 컨트롤러
function login() {
$attributes = \Input::get();
\Auth::account()->attempt(array(
'email' => $attributes['email'],
'password' => $attributes['password'],
));
\Auth::user()->attempt(array(
'email' => $attributes['email'],
'password' => $attributes['password'],
));
\Auth::account()->check();
\Auth::user()->check();
return \View::make('superAdmin.login');
}
public function authenticateAs($type, $user) {
$this->app['auth']->$type()->setUser($user);
}
}
입니다. \ XAMPP \ htdocs를 \ laravelrental \ 업체 \의 laravel의 \ 프레임 워크 : 난 내 코드를 실행할 때, 결과는
가"를 분명히 \ 인증 \ AuthManager :: createDriver()에 대한 인수 1 누락, 이 C에서 호출했다 \ src \ Illuminate \ Support \ Manager.php 라인 88에 정의되어 있습니다.
어떻게이 문제를 해결 했습니까? app/config/app.php
에서
이미 사용하고 있지만 여전히 캔트 – user3796075
'Illuminate \ Auth \ AuthServiceProvider'공급자를 제거하지 않으면 오류가 발생합니다 (다시 한번 읽음) [설치 가이드] (https://github.com/ollieread/multiauth # 설치)) –