Modal wont close after you create a laravel Process
I've set to run a job after I submit the Action Modal. That job creates a process. After a job is created, the modal wont close automatically, and I also cant redirect (e.g. I cant visit the dashboard).
How can I fix this?
Solution:Jump to solution
- https://laravel.com/docs/11.x/queues#driver-prerequisites
- Change queue to database in the .env
- php artisan queue:listen...
13 Replies
how are you doing this? share some code..
where is the action?
Oops, sorry, I forgot to add it
did you add the
->action(function() { } )
method?Nope. Just steps() and after().
You think its better if I add it there?
try this
I tried action(), and its the same
It seems that no request is processed until the process I created is completed
not related, but why aren't you rendering the action using this?
https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component#passing-action-arguments
Ah, because I want to use my custom button for it
I dont want the default button
Solution
- https://laravel.com/docs/11.x/queues#driver-prerequisites
- Change queue to database in the .env
- php artisan queue:listen
This solved it!
Not a filament issue after all 🤷♂️