mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 10:54:41 +00:00
User authentication
This commit is contained in:
21
backend/app/Http/Requests/Auth/LoginRequest.php
Normal file
21
backend/app/Http/Requests/Auth/LoginRequest.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user