solutionforest / filament-tree

Filament Tree is a plugin for Filament Admin that creates a model management page with a heritage tree structure view. This plugin can be used to create menus and more.
MIT License
125 stars 43 forks source link

add getHasActionsForms #12

Closed tomiaa1926 closed 1 year ago

tomiaa1926 commented 1 year ago

image When I edit FileUpload field to the Action,The picture does not display properly

I looked at the code to get upload files on filament

src/Concerns/InteractsWithForms.php

    protected function getTraitForms(): array
    {
        $forms = [];

        foreach (class_uses_recursive($class = static::class) as $trait) {

            if (method_exists($class, $method = 'get' . class_basename($trait) . 'Forms')) {

                $forms = array_merge($forms, $this->{$method}());
            }
        }

        return $forms;
    }

But there's no response in the package.

src/Concern/HasActions.php

So please add it so that the file will display properly

image