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
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.
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.
Are you familiar with Laravel development?
yes
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.