fix update info

This commit is contained in:
mahdi purHosseini
2024-01-08 17:24:20 +03:30
parent fa5c7bb6e1
commit 761aec8b69
3 changed files with 118 additions and 100 deletions
@@ -0,0 +1,22 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateInfoUserRequest extends FormRequest
{
public function authorize()
{
return auth( 'api' )->check();
}
public function rules()
{
return [
'name' => 'required|string|max:255' ,
'email' => 'nullable|email'
];
}
}