Task 7 - update forbidden field

This commit is contained in:
PovilasKorop
2021-11-29 15:31:28 +02:00
parent ccb91e35fb
commit ce6827fab8
7 changed files with 109 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateUserRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'required',
'email' => 'required',
];
}
}