Switch to array syntax

This commit is contained in:
Marcus Moore 2024-10-28 14:37:52 -07:00
parent d4cf392387
commit 2042733dc0
No known key found for this signature in database

View file

@ -26,8 +26,13 @@ class ReportTemplate extends Model
protected $rules = [ 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: 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... // @todo: but enabling shared reports in the future would mean we would have name collisions then...
'name' => 'required|unique:report_templates,name', 'name' => [
'options' => 'array', 'required',
'unique:report_templates,name',
],
'options' => [
'array',
],
]; ];
protected static function booted() protected static function booted()