feat: complete login authentication

This commit is contained in:
2026-08-16 11:33:23 +03:30
parent ede831c121
commit 39302365bf
4 changed files with 311 additions and 51 deletions
@@ -0,0 +1,44 @@
<?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',
'min:10',
'max:150',
],
'password' => [
'required',
'string',
'min:8',
'alpha_num',
],
];
}
}