mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Switch to array syntax
This commit is contained in:
parent
d4cf392387
commit
2042733dc0
|
@ -26,8 +26,13 @@ class ReportTemplate extends Model
|
|||
protected $rules = [
|
||||
// @todo: this should probably be unique for each user so people don't get errors trying to use a name someone else already used...
|
||||
// @todo: but enabling shared reports in the future would mean we would have name collisions then...
|
||||
'name' => 'required|unique:report_templates,name',
|
||||
'options' => 'array',
|
||||
'name' => [
|
||||
'required',
|
||||
'unique:report_templates,name',
|
||||
],
|
||||
'options' => [
|
||||
'array',
|
||||
],
|
||||
];
|
||||
|
||||
protected static function booted()
|
||||
|
|
Loading…
Reference in a new issue