Mohamed Ayaou
when create data redirect to route print and redirect to index
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
4 replies
when create data redirect to route print and redirect to index
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)4 replies
how to create 1 data to 3 table?
mutateFromDataBeforeCreation()
is not suitable when you need to assign IDs, try handleRecordCreation()
which gives you more control:
https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-the-creation-process11 replies
Tailwind Classes Issue
If you are using a custom theme, then the root tailwind.config.js is not being used for the Filament Panel assets bundling, instead a new one in the resources/css/filament (I think) folder is being used for the panels
7 replies
Terminal component
if you want only to see the logs files then see this plugins and other similar ones:
https://filamentphp.com/plugins/saade-laravel-log
6 replies