Skip to content

Custom tools are not loaded if you are not logged in #4965

@ikaymaz

Description

@ikaymaz
  • Laravel Version: 9.36.4
  • Nova Version: 4.16.1
  • PHP Version: 8.0.24
  • Database Driver & Version: mysql (8.0.19)
  • Operating System and Version: Ubuntu 22.04
  • Browser type and version: Chrome 106.0.5249.119
  • Reproduction Repository: -

Description:

Custom tools are not loaded if you are not logged in.

In my case the standard login process is not sufficient, therefore I want to use a custom process.
We already have the possibility to customize certain routes via config/nova.php.
The backend part is called and executed accordingly.
When calling the corresponding Vue component via Inertia, the frontend is loaded correctly, but an error is referenced.
The problem is that custom tools aren't loaded and therefore can't be reached.

DOM logged out:
image

DOM logged in:
image

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

  1. Use a Laravel application with Laravel Nova v4 installed
  2. Create a custom tool with the console command
php artisan nova:tool example/test-tool
  1. add the new tool (TestTool) to your NovaServiceProvider method called tools
  2. Call the Nova application while logged out.
    Check if the tools are present (for example, when viewing the DOM).
  3. Call the Nova application while logged in.
    Check if the tools are present (for example, when viewing the DOM).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions