mirror of
https://github.com/robonen/metr.git
synced 2026-06-20 01:55:22 +00:00
User authentication
This commit is contained in:
@@ -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'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user