A free open source IT asset/license management system
Switch to array syntax
Marcus Moore2042733dc020
diff --git a/app/Models/ReportTemplate.php b/app/Models/ReportTemplate.phpindex 1494978387..4c7604a8eb 100644--- a/app/Models/ReportTemplate.php+++ b/app/Models/ReportTemplate.php@@ -26,8 +26,13 @@ class ReportTemplate extends Modelprotected $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()