'boolean' ]; protected static $logName = 'sliders'; protected static $logOnlyDirty = true; protected static $submitEmptyLogs = false; protected static $logAttributes = [ 'name', 'image', 'language', 'link', 'type', 'placement', 'published', 'position' ]; public function getImage(): string { if (!empty($this->image)) { return Storage::url($this->image); } return '/images/nophoto.jpg'; } public function scopePublished($query) { return $query->where('published', true); } }