Company name length to 1
This commit is contained in:
parent
c9d00b1f06
commit
0e0b31bba6
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue