File manager - Edit - /home/linknsbh/cecil-hotel.net/vendor/botble/platform/dashboard/src/Models/DashboardWidget.php
Back
<?php namespace Botble\Dashboard\Models; use Botble\Base\Casts\SafeContent; use Botble\Base\Models\BaseModel; use Illuminate\Database\Eloquent\Relations\HasMany; class DashboardWidget extends BaseModel { protected $table = 'dashboard_widgets'; protected $fillable = [ 'name', ]; protected $casts = [ 'name' => SafeContent::class, ]; protected static function booted(): void { static::deleted(fn (DashboardWidget $widget) => $widget->settings()->delete()); } public function settings(): HasMany { return $this->hasMany(DashboardWidgetSetting::class, 'widget_id', 'id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.11 |
proxy
|
phpinfo
|
Settings