1
문제를 찾을 수 없습니다. 그게 어디 있니? "정의되지 않은 변수를 요청", 또한Laravel : 정의되지 않은 변수 : 요청
public function login(Request $request)
클래스의 상단에이 줄을 추가 : 또는
use Illuminate\Http\Request;
, 당신은 할 수
public function login()
{
// Validate the form data
$this->validate($request, [
'email' => 'required|email',
'passwort' => 'required|min:6'
]);
// Attempt to log the user in
if (Auth::guard('admin')->attempt(['email' => $request->email, 'passwort' => $request->passwort], $remember)) {
// if successful, then redirect to their intended location
return redirect()->intended(roue('admin.dashboard'));
}
// if unsuccessful, then redirect back to the login with the form data
return redirect()->back()->withInput($request->only('email', 'remember'));
}
음. '요청'변수를 정의하지 않았지만 코드에서 사용하고 있습니다. – zuif