LoginController
(Документация)public function username()
{
return 'phone';
}
protected function validateLogin(Request $request)
{
$this->validate(
$request,
[
'phone' => 'required|string',
'password' => 'required|string',
]
);
}