mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
WTF why is name required??
This commit is contained in:
parent
5a848566f9
commit
704ee59541
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue