changeweb / Unifiedtransform

A school management Software
https://changeweb.github.io/Unifiedtransform/
GNU General Public License v3.0
2.81k stars 1.23k forks source link

Class 'Laravel\Dusk\DuskServiceProvider' not found** #244

Open dhirraj opened 4 years ago

dhirraj commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: In Prod env after running the following commands : composer install --optimize-autoloader --no-dev

It gives an error :

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover

In Application.php line 690: Class 'Laravel\Dusk\DuskServiceProvider' not found
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

Expected behavior It should not give any error

changeweb commented 4 years ago

I shall look into it. Right now I would suggest to just change environment variable from 'local' to 'production' in .env file.

Fenn-CS commented 4 years ago

Reporting that, I have experienced this error as well. Ubuntu 18, php-7.2