Files
monica/app/Http/Requests/People/PetsRequest.php
T
2017-12-26 21:38:09 -05:00

32 lines
562 B
PHP

<?php
namespace App\Http\Requests\People;
use Illuminate\Foundation\Http\FormRequest;
class PetsRequest 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' => 'max:255|nullable',
'pet_category_id' => 'integer',
];
}
}