REFACTORING #1880 @15m: remove custom fields

This commit is contained in:
Michal Kváček
2016-11-23 03:21:23 +01:00
parent 675aec669b
commit d0fbce13fb
28 changed files with 1 additions and 727 deletions
@@ -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',
];
}
}