feat: implement authentication functionality with login and logout endpoints

This commit is contained in:
2026-07-02 14:55:47 -03:00
parent a95cfc780b
commit 9a5a8e85b9
11 changed files with 351 additions and 31 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Domains\Auth\Requests;
use Illuminate\Foundation\Http\FormRequest;
class LoginUserRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
/**
* @return array<string, mixed>
*/
public function rules(): array
{
return [
'email' => ['required', 'string', 'email', 'max:255'],
'password' => ['required', 'string'],
];
}
}