makeForm() ->schema([ Placeholder::make('see me bitches'), TextInput::make('name'), Actions::make([ Actions\Action::make('closeUserModal') ->label('Close') ->color('secondary') ->extraAttributes([ 'x-on:click' => 'isOpen = false', // close modal [FASTER] ]), Actions\Action::make('saveUserModal') ->label('Save') ->color('primary') ->action(function (Get $get) { logger($get('name')); }), ])->fullWidth(), ]); } public function action(): Action { return Action::make('eula') ->form([ Placeholder::make('eula') ->label('By pressing I Accept below you are indicating your agreement to the Minecraft® EULA.'), ]) ->action(function (DaemonFileRepository $fileRepository) { try { $fileRepository->putContent('eula.txt', 'eula=true'); } catch (\Exception $e) { Notification::make() ->title('Error') ->body($e->getMessage()) ->danger() ->send(); } } ); } }