I want to ask you how to do multi authentication login in laravel using ollieread? Here is my code in auth.php
'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, ), Then, this is my controller
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); } }
I dont get it how to define $attributes. And when i run my code, the result was
"Missing argument 1 for Illuminate\Auth\AuthManager::createDriver(), called in C:\xampp\htdocs\laravelrental\vendor\laravel\framework\src\Illuminate\Support\Manager.php on line 88 and defined".
So how i fixed this problem?