Skip to content
This repository was archived by the owner on Oct 16, 2023. It is now read-only.

Route slug vs Resource Name #57

Closed
drbyte opened this issue Sep 12, 2023 · 1 comment
Closed

Route slug vs Resource Name #57

drbyte opened this issue Sep 12, 2023 · 1 comment

Comments

@drbyte
Copy link

drbyte commented Sep 12, 2023

I just installed this plugin by following the readme and found that it didn't auto-register (maybe that's a bug itself, but not the topic at hand in this Issue).
... so I followed the next instruction to extend the base ActivityResource class into my own project.

As long as I named my extended class as ActivityResource, the plugin is correctly accessible at /activities route.
However, if I name my extended class to ActivityLogResource, the route changes to activity-logs, and throws an error Route [filament.admin.resources.activities.view] not defined. when calling \Filament\Resources\Resource::getUrl()

Same error happens when I name my extended class as ActivityResource but set protected static ?string $slug='activity-logs';.

In my present application, I use the term "Activity" to refer to something other than "site activity logs", so would prefer to name it differently.

Screen Shot 2023-09-12 at 6 34 09 PM
@alexjustesen
Copy link
Owner

Just a heads up #60

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants