1
0
mirror of https://github.com/robonen/metr.git synced 2026-03-20 10:54:41 +00:00

User authentication

This commit is contained in:
2022-05-28 22:55:36 +07:00
parent dc539ed911
commit 55bc2e08f8
25 changed files with 260 additions and 147 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Http\Requests;
class UpdateUserRequest extends BaseRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array<string, mixed>
*/
public function rules()
{
return [
'first_name' => ['string'],
'last_name' => ['string'],
'middle_name' => ['string'],
'email' => ['string', 'email', 'unique:users'],
'phone' => ['string'],
];
}
}