public function getTitleAttribute($value) { return $value ?: pathinfo($this->path, PATHINFO_FILENAME); }