mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Add unique constraint to name
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
206238e83f
commit
92eb6eb1b6
|
@ -13,7 +13,7 @@ class Group extends SnipeModel
|
|||
protected $table = 'permission_groups';
|
||||
|
||||
public $rules = [
|
||||
'name' => 'required|min:2|max:255',
|
||||
'name' => 'required|min:2|max:255|unique',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
|
|
Loading…
Reference in a new issue