Outsource action into own class with $this properties
I have a filament List-Employees class, which has a CreateAction with a lot of logic in it. It also has parts where it access class properties with $this.
I want to outsource this CreateAction to EmployeeActions/Create. The create method should be static, so that I can call it in my List-Employees class. But if it's static, I can't access $this.
What's the correct or best way in Laravel Filament to outsource an action and still be able to use properties on that class?
Thank you!
0 Replies