Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources are not loaded when using Octane #6457

Closed
VincentBean opened this issue Jul 9, 2024 · 1 comment
Closed

Resources are not loaded when using Octane #6457

VincentBean opened this issue Jul 9, 2024 · 1 comment

Comments

@VincentBean
Copy link

Description:

When using Octane, resources from packages are not loaded. They are not added to the menu and give a 404. When checking the contents of Nova::$resources it does not add them. Resources that exist in app/Nova do load via the resourcesIn.
Without Octane they do load and appear in the menu.

I've tested this on MacOS using Valet and on Ubuntu.

I have found one other mention on this issue by @rasmuscnielsen here: #6294 (comment)
But he never followed up with an issue.

Detailed steps to reproduce the issue on a fresh Nova installation:

I've setup a repo with these two packages, which both register the Nova resource with Nova::resource in the service provider:

  1. Clone & setup the repo
  2. Create a user
  3. Start Octane and login, the resources are not loaded
  4. Login via FPM, the resources are loaded
@crynobone
Copy link
Member

Octane only loads the service provider once in Octane while Nova added resources within Nova::serving() event so it only loaded when serving Nova requests.

@laravel laravel locked and limited conversation to collaborators Jul 9, 2024
@crynobone crynobone converted this issue into discussion #6458 Jul 9, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants