morphMany(Setting::class, 'settingable'); } public function path(): Attribute { return Attribute::make( get: fn () => ucfirst($this->type) . 's/' . ucfirst($this->extension) ); } public function namespace(): Attribute { return Attribute::make( get: fn () => 'Paymenter\\Extensions\\' . ucfirst($this->type) . 's\\' . ucfirst($this->extension) ); } public function meta(): Attribute { return Attribute::make( get: fn () => \App\Helpers\ExtensionHelper::getMeta($this->namespace . '\\' . ucfirst($this->extension)) ); } }