REFACTORING #1880 @15m: remove custom fields
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
class EditCustomFieldRequest extends Request
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'name' => 'required',
|
||||
'minLength' => 'numeric|min:0',
|
||||
'maxLength' => 'numeric|min:0',
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
<?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,id',
|
||||
'resource' => 'required|exists:custom_field_resources,id',
|
||||
'minLength' => 'numeric|min:0',
|
||||
'maxLength' => 'numeric|min:0',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user