mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 19:04:43 +00:00
22 lines
436 B
PHP
22 lines
436 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Auth;
|
|
|
|
use App\Http\Requests\BaseRequest;
|
|
|
|
class LoginRequest extends BaseRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'email' => ['required', 'string', 'email', 'exists:users'],
|
|
'password' => ['required', 'string'],
|
|
];
|
|
}
|
|
}
|