Files
eatvio-infra/app/Http/Requests/Auth/LoginRequest.php

32 lines
667 B
PHP

<?php
declare(strict_types=1);
namespace App\Http\Requests\Auth;
use Illuminate\Foundation\Http\FormRequest;
final class LoginRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, array|\Illuminate\Contracts\Validation\ValidationRule|string>
*/
public function rules(): array
{
return [
'email' => 'required|email|unique:users,email',
'password' => 'required|min:6',
];
}
}