when i write web service for Admin login,i faced this problem "ErrorException in LoginController.php line 31: Non-static method Illuminate\Auth\SessionGuard::attempt() should not be called statically, assuming $this from incompatible context" My login controller code is below; `public function adminLogin() { $auth = Auth::guard(AppParams::AUTH_ADMIN); if ($auth::attempt(array('am_email' => Input::get('am_email'), 'am_password' => Input::get('am_password')))) { return response()->json(array('login_status' => 'success', 'adminID' => $auth->user()->am_id)); } else { return response()->json(array('login_status' => 'not found')); }
}
`
via virtullians