22 lines
437 B
PHP
22 lines
437 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
class NewCustomFieldRequest extends Request
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'name' => 'required',
|
|
'type' => 'required|exists:custom_field_types',
|
|
'minLength' => 'numeric|min:0',
|
|
'maxLength' => 'numeric|mix:0'
|
|
];
|
|
}
|
|
}
|