こんにちは、私は Laravel フレームワークを調べていますが、この認証ドライバーを動作させることができません! 戻り値:
未処理の例外
Message:
Uninitialized string offset: 0
Location:
C:\wamp\www\site\laravel\auth\drivers\eloquent.php on line 39
次のログインコントローラーがあります。
class Login_Controller extends Base_Controller {
public $restful = true;
public function post_index()
{
$username = Input::get('username');
$password = Input::get('password');
if ( Auth::attempt($username, $password) )
{
return Redirect::to('home');
}
else
{
return Redirect::to('login')->with('login_errors', true);
}
}
public function get_index() {
return View::make('page.login');
}
}
私は持っている'username' => 'username',
行名の auth.php で
他の誰かがこれに出くわしましたか?
よろしく
フィル