mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Company name length to 1
This commit is contained in:
parent
c9d00b1f06
commit
0e0b31bba6
|
@ -14,8 +14,7 @@ final class Company extends Model
|
|||
protected $table = 'companies';
|
||||
|
||||
// Declare the rules for the model validation
|
||||
protected $rules = ['name' => 'required|min:2|max:255|unique:companies,name'];
|
||||
|
||||
protected $rules = ['name' => 'required|min:1|max:255|unique:companies,name'];
|
||||
/**
|
||||
* Whether the model should inject it's identifier to the unique
|
||||
* validation rules before attempting validation. If this property
|
||||
|
|
Loading…
Reference in a new issue