'encrypted', 'smtp_password' => 'encrypted', ]; public function fqdn(): Attribute { return Attribute::make( set: function ($value) { if ($value) { $url = Url::fromString($value); $host = $url->getHost(); return $url->getScheme() . '://' . $host; } } ); } public static function get() { return InstanceSettings::findOrFail(0); } public function getRecepients($notification) { $recipients = data_get($notification, 'emails', null); if (is_null($recipients) || $recipients === '') { return []; } return explode(',', $recipients); } }