dealhub/app/Http/Requests/AuthenticateUserRequest.php
kusowl 8c93e78955 feat(Authentication): User log in, role based dashboard, and logout
- add login functionality
- alerts for registration and user account status
- fix status of broker role is not pending during registration
2026-01-09 15:17:28 +05:30

32 lines
707 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class AuthenticateUserRequest 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', 'max:255'],
'password' => 'required',
'remember_me' => 'nullable|boolean',
];
}
}