Eshop-Laravel/app/Http/Requests/UpdateProfile.php

31 lines
546 B
PHP
Raw Permalink Normal View History

2019-10-18 09:25:37 +00:00
<?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',
];
}
}