Skip to content
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

custom action not found on cpanel #5837

Open
zia-khan-dev opened this issue Jan 30, 2024 · 1 comment
Open

custom action not found on cpanel #5837

zia-khan-dev opened this issue Jan 30, 2024 · 1 comment

Comments

@zia-khan-dev
Copy link

Laravel version

8.75

PHP version

8

Voyager version

1.6

Database

mysql

Description

I've added a custom action button to my laravel project, locally it is fine, but on cpanel it give me an error that "Class 'App\Actions\MyAction' not found"

Steps to reproduce

Create a custom action
add to service provider

Expected behavior

The custom action should work on cpanel as locally its working fine

Screenshots

image

Additional context

No response

@Emerica
Copy link
Contributor

Emerica commented Jan 30, 2024

Verify the file exists and hasn't been corrupted, maybe just an upload/transfer issue.

Is there any typo or case miss-match issues with your class name within the file itself, different environments might be more sensitive.

I think most of mine end up in AppServiceProvider like, I don't bother with a use.

        Voyager::addAction(\App\Actions\MyAction::class);

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

No branches or pull requests

2 participants