File tree Expand file tree Collapse file tree
Admin/Resources/Servers/RelationManagers
Server/Resources/Subdomains Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ public function table(Table $table): Table
8686 ->createAnother (false )
8787 ->action (function (array $ data , SubdomainService $ service ) {
8888 try {
89+ $ data ['server_id ' ] = $ this ->getOwnerRecord ()->id ;
90+
8991 return $ service ->handle ($ data );
9092 } catch (Exception $ exception ) {
9193 Notification::make ()
Original file line number Diff line number Diff line change @@ -115,6 +115,11 @@ public static function table(Table $table): Table
115115 ->iconSize (IconSize::ExtraLarge)
116116 ->action (function (array $ data , SubdomainService $ service ) {
117117 try {
118+ /** @var Server $server */
119+ $ server = Filament::getTenant ();
120+
121+ $ data ['server_id ' ] = $ server ->id ;
122+
118123 return $ service ->handle ($ data );
119124 } catch (Exception $ exception ) {
120125 Notification::make ()
You can’t perform that action at this time.
0 commit comments