mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 02:44:42 +00:00
23 lines
486 B
PHP
23 lines
486 B
PHP
<?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'],
|
|
];
|
|
}
|
|
}
|