WTF why is name required??

This commit is contained in:
snipe 2017-01-12 02:19:36 -08:00
parent 5a848566f9
commit 704ee59541
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ class AssetRequest extends Request
public function rules()
{
$rules = [
'name' => 'min:2|max:255',
'name' => 'max:255|nullable',
'model_id' => 'required|integer',
'status_id' => 'required|integer',
'company_id' => 'integer|nullable',

View file

@ -43,7 +43,7 @@ class Asset extends Depreciable
use ValidatingTrait, UniqueUndeletedTrait;
protected $rules = [
'name' => 'min:2|max:255',
'name' => 'max:255|nullable',
'model_id' => 'required|integer',
'status_id' => 'required|integer',
'company_id' => 'integer|nullable',