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

Remove IdeHelperServiceProvider from providers #1221

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Seb33300
Copy link

@Seb33300 Seb33300 commented May 4, 2023

This is to prevent production build to fail when using:

composer install --optimize-autoloader --no-dev
...
In ProviderRepository.php line 208:
  Class "Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider" not found

As I understand IDE Helper Generator for Laravel documentation, you should no force the provider in the config since it is auto discovered:

This package makes use of Laravels package auto-discovery mechanism, which means if you don't install dev dependencies in production, it also won't be loaded.

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

Successfully merging this pull request may close these issues.

None yet

1 participant