Files
monica/app/Http/Requests/People/AddressesRequest.php
T
Régis Freyd 8e575735d5 Add support for multiple contact fields and addresses (#657)
This requires to run the migrations `php artisan migrate` which might take some time.
2017-11-26 09:36:20 -05:00

36 lines
752 B
PHP

<?php
namespace App\Http\Requests\People;
use Illuminate\Foundation\Http\FormRequest;
class AddressesRequest 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 [
'country_id' => 'integer|nullable',
'name' => 'max:255|nullable',
'street' => 'max:255|nullable',
'city' => 'max:255|nullable',
'province' => 'max:255|nullable',
'postal_code' => 'max:255|nullable',
];
}
}