Company name length to 1

This commit is contained in:
snipe 2016-05-31 15:04:13 -07:00
parent c9d00b1f06
commit 0e0b31bba6

View file

@ -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