Closed xoco70 closed 4 years ago
Ok, fixed, I had to add the method: view() for policy
public function view()
{
return true;
}
Ok, I can make it appear on the view resource page: /nova/resources/myresource/1, but can't make it appear in index.
I tried:
public function actions(Request $request)
{
return [
(new ScanMissingData())->onlyOnIndex(true),
];
}
On the resource page. It disappear from view ressource page, but doesn't show up on index.
I also remove completely my Policy, and reload with
composer dump-autoload
, but still doesn't showing...
Have you figured it out, it seems like the issue is localized to your set up but perhaps the solution could help somebody else?
Nop, I tried everything I could. Double checked docs... Nobody seems to have the problem.
I can see the button on the details page, but not on index ... Tried to completely remove my Policy, didn't change anything.
I will try to replicate it in a fresh laravel nova to see if it happens ! This is my last shot !
I think I will use standalone action now it has been released. Just waiting proper docs.
This is happening because you have another nova tool that's extending CustomIndexToolbar
As a workaround you can add public $showOnIndex = true;
in your detached action and it will show the dropdown inside the resource toolbar.
Or you can determine which other plugin is conflicting and decide whether you want to disable it
Hi,
I want to use your plugin, but I follow the docs, and the button never shows.
Here is my model:
And here is my action:
Relevant data: PHP 7.4, Nova 3.8.3, Laravel 7.25, I'm using gregoriohc/laravel-nova-theme-responsive
Am I missing something ?