when create data redirect to route print and redirect to index

hi anyone know how solve that case? i want after create the record i want print the invoice and redirect to index
2 Replies
Mohamed Ayaou
Mohamed Ayaou4w ago
I think this link contains what you need: https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-data-before-saving (reffer to the muteFormDataBeforeCreate and the redirect url and the life cycle hooks)
Mohamed Ayaou
Mohamed Ayaou4w ago
one thing to mention is that printing a file might be done via an HTTP response (the default browser behavior), this may confict with the redirect HTTP response is they were sent for the same request so put attention to this

Did you find this page helpful?