belongsTo(News::class); } protected function newsPhotoImg(): Attribute { return Attribute::make( get: fn ($value) => is_null($this->image_url) ? null :Storage::disk('public')->url($this->image_url), ); } }