Skip to content
This repository was archived by the owner on May 30, 2026. It is now read-only.
This repository was archived by the owner on May 30, 2026. It is now read-only.

Menu filter does not show when running on Octane #48

Description

@webard

Hi,

when app is running on Octane with Swoole (I did not tested RR or Franken), MenuFilter::activate needs to be run on every request, not only in Service Provider, which are ran only once at first request.

Solution is class:

namespace App\Octane;

use NormanHuth\NovaMenu\Services\MenuFilter;

class ActivateMenuFilter
{

    public function handle()
    {
        MenuFilter::activate('top');
    }
}

and modification in octane.php:

use App\Octane\ActivateMenuFilter;
...
'listeners' => [
 ...
        RequestReceived::class => [
            ...
            ActivateMenuFilter::class,
        ],
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions