31 lines
546 B
PHP
31 lines
546 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Requests;
|
||
|
|
||
|
use Illuminate\Foundation\Http\FormRequest;
|
||
|
|
||
|
class UpdateProfile extends FormRequest
|
||
|
{
|
||
|
|
||
|
public function authorize()
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
|
||
|
public function rules()
|
||
|
{
|
||
|
return [
|
||
|
'name' => 'required|min:2',
|
||
|
'last_name' => 'required|min:2',
|
||
|
'streetNum' => 'required',
|
||
|
'street' => 'required',
|
||
|
'city' => 'required',
|
||
|
'ZIP' => 'required',
|
||
|
'country' => 'required',
|
||
|
'phone' => 'required',
|
||
|
|
||
|
];
|
||
|
}
|
||
|
}
|