From 29261ebe88cbadce6485dcf0ae33df77fa3b5bf2 Mon Sep 17 00:00:00 2001 From: alexvenga Date: Sat, 6 Jan 2024 18:08:36 +0300 Subject: [PATCH] Update SettingGroup.php --- src/Models/SettingGroup.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/Models/SettingGroup.php b/src/Models/SettingGroup.php index 3759aec..3d57f68 100644 --- a/src/Models/SettingGroup.php +++ b/src/Models/SettingGroup.php @@ -5,6 +5,16 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; +/** + * @property int $id + * @property string $slug + * @property string|null $hint + * @property Carbon|null $created_at + * @property Carbon|null $updated_at + * @property-read string $name_human attribute + * @property Setting[] $settings + * @property-read int $settings_count + */ class SettingGroup extends Model { protected $guarded = []; @@ -23,10 +33,10 @@ public function getNameHumanAttribute(): string { $string = $this->slug; - if (!empty($this->name)) { - return $string . ' (' . $this->name . ')'; + if (! empty($this->name)) { + return $string.' ('.$this->name.')'; } return $string; } -} \ No newline at end of file +}