crater-invoice / crater

Open Source Invoicing Solution for Individuals & Businesses
https://craterapp.com
GNU Affero General Public License v3.0
7.62k stars 1.53k forks source link

Remove IdeHelperServiceProvider from providers #1221

Open Seb33300 opened 1 year ago

Seb33300 commented 1 year ago

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.