How to execute custom action written outside of filament?

instead of defualt action on create in a resource class i need it to execute custom action written outside of filament. is this possible?
5 Replies
toeknee
toeknee2y ago
You will need to use form outside of filament to build a Form as per; https://filamentphp.com/docs/2.x/forms/installation But we are just filament models, so you can do it however your project operates outside of filament.
Filament
Installation - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
shashika
shashikaOP2y ago
For example I want store data in database using my custom action when my create function on my vehicle resource is executed without executing the default logic of filament for create function on resources. Further, I need to achieve the above as I'm currently using domain driven development.
toeknee
toeknee2y ago
Are you familiar with Laravel development?
shashika
shashikaOP2y ago
yes
toeknee
toeknee2y ago
So write a custom action as you wish outside of filament and use eloquent and the model. You can integrate filament forms outside of filament.
Want results from more Discord servers?
Add your server