Add unique constraint to name

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-05-28 15:09:31 +01:00
parent 206238e83f
commit 92eb6eb1b6

View file

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