Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

osama_abdullah's avatar

how can i disable actions in global search in laravel nova

in laravel nova global search i see actions are returning, where they are coming from? and how can i disable them in global search? https://i.stack.imgur.com/ex9Jc.png this is a screenshot of that issue

0 likes
5 replies
bobbybouwmann's avatar

You probably have a resource called "Action". The action itself won't show by default in the search bar, you must have changed something to make this happen.

Rootes's avatar

Hello, I have the same issue and I do not have a resource all Actions.. I do have one that is cal Act. But is not the one that is showing in the Global search.

Any idea?

ThijsH's avatar

Hello, I also have the same issue. There is no resource called Actions, but I do have the Actions folder in the Nova folder. The results under Actions are shown by id, and reference an action-event. Any known solutions ?

ricardov's avatar
ricardov
Best Answer
Level 5

@osama_abdullah @rootes @thijsh You are right, this is happening. @bobbybouwmann sorry but you are wrong just this time. It looks like Nova had a small not issue bug, they include a resource to brings action logs from the database. This file it's located on the Nova source folder in ./nova/src/Actions/ActionResource.php. To avoid this behavior, just add this line on the class:

...
class ActionResource extends Resource
{
    //This is the line to add
    public static $globallySearchable = false;

....

This going to stop showing the resource results on the Global Search.

Best luck on your projects.

4 likes
Lednerb's avatar

Thanks for your reply!

Actually the bug / issue still exists in the latest version (v3.25.0)

Please or to participate in this conversation.