Alex Maven
Alex Maven
FFilament
Created by Alex Maven on 1/5/2024 in #❓┊help
After Successful Queue'ed Job, Trigger Update on Filament Panel Form Field?
Is there a way I can update a Filament Form Panel's Field after successfully processing a queue'ed job? I currently have the queue working successfully but I have to do a full page refresh after the queue'ed job successfully runs to see the updated 'title' field. I imagine I'd have to emit a Laravel Event and someone have the filament frontened trigger when that event fires?
Portion of Filament Form File Calling the Queue Job:

Name of Partial File: ContentResource.php
Portion of Filament Form File Calling the Queue Job:

Name of Partial File: ContentResource.php
TextInput::make('title'), Actions::make([ Action::make('generateTitlessssdfdsfsdf') ->icon('heroicon-m-sparkles') ->label('Generate Title') ->tooltip('Generate a title for this article.') ->action(function (Content $content, Set $set) { ProcessGeneratedContent::dispatch($content, PromptType::TITLE); }) ])->alignment(Alignment::Right),
```
13 replies
FFilament
Created by Alex Maven on 12/25/2023 in #❓┊help
Updating a Filament Admin Panel Forms Sub-table After Triggering Action to Add Data to the Database
The subtable of the filament form updates with all the new data if I refresh the page. I'd like to figure out how to see the added data without manually refreshing the form page that houses the related (relationship manager) subtable. What I'd like is after I've run a custom action to grab data from the search engines, and its added via an API call to my database, to update the related relationship database on my filament form (using the admin panel). I've yet to find anything in the documentation. Forgive me if I missed it. I've been able to dynamically update data on the actual forms using $set, but I don't know how to do it with the forms related subtable.
1 replies