feat: add user authentication

This commit is contained in:
2026-08-19 08:04:02 +03:30
parent a10bdd20fa
commit 84f095b00f
8 changed files with 1548 additions and 8 deletions
@@ -0,0 +1,40 @@
<?php
namespace App\Http\Requests\Auth;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class LoginPostRequest 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, ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'email' => [
'required',
'email',
],
'password' => [
'required',
'string',
],
];
}
}