z-song / laravel-admin

Build a full-featured administrative interface in ten minutes
https://laravel-admin.org
MIT License
11.13k stars 2.81k forks source link

pass variable to action tools #5678

Open arbabi2010 opened 1 year ago

arbabi2010 commented 1 year ago

i want to pass data to action like below code $grid->tools(function (Tools $tools) use ($fileId) { $tools->prepend(new DeleteResponseFile($fileId)); });

but i get Unresolvable dependency resolving [Parameter #0 [ $fileId ]] in class