Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants