feat:implement RegisterController.php

This commit is contained in:
2026-08-16 10:50:53 -07:00
parent aea85618fc
commit 279375a19e
12 changed files with 758 additions and 12 deletions
@@ -0,0 +1,38 @@
<?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',
'max:150',
'email',
'unique:App\Models\User'
],
'password' => [
'required',
'min:6',
],
];
}
}