Unique sur Sites.name and Projects.name
This commit is contained in:
parent
a7bace7b47
commit
10957713c0
2 changed files with 4 additions and 2 deletions
|
|
@ -31,7 +31,8 @@ class Project extends Model
|
|||
'type' => CrudType::string(),
|
||||
'validate' => [
|
||||
'string',
|
||||
'max:255'
|
||||
'max:255',
|
||||
'unique:sites,name'
|
||||
],
|
||||
'required' => true,
|
||||
'nullable' => false,
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ class Site extends Model
|
|||
'type' => CrudType::string(),
|
||||
'validate' => [
|
||||
'string',
|
||||
'max:255'
|
||||
'max:255',
|
||||
'unique:sites,name'
|
||||
],
|
||||
'required' => true,
|
||||
'nullable' => false,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue