Save Action in a separate file

hello , can I save the actions in a separate file to use it in multiple places and avoid code duplication..
thank you ..
Solution
@Leandro Ferreira Was just wondering and thought to add a question maybe some else will have the same ... , figured that I can add a method like userform() that returns an array in the related model "User" for example
public static function userForm() {
 return [
textinput::make('email'),
.....
];
}

then just call it like
User::userForm()

wherever I want the form
Was this page helpful?