getting error whoile installing composer
Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover
In DuskServiceProvider.php line 43:
It is unsafe to run Dusk in production.
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
Hey,
First Option:
If you are use "auto discovery" (since Laravel 5.5 I think), add or change this in composer.json
:
"extra": {
"laravel": {
"dont-discover": [
"laravel/dusk"
]
}
},
and run composer dump-autoload
Second Option:
Change APP_ENV
to local in your .env
File.
Second and last Option:
Add this to the register()
method in your AppServiceProvider.php
// Run Dusk only on testing and local environment
if ($this->app->environment('local', 'testing')) {
$this->app->register(DuskServiceProvider::class);
}
i was performing this on live server
yes i have tried it but yet it gives the same error if possible please help me i will give you my cpanel details as welll
I'm getting same erros like this one "Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1"
At my Web development Company in Chandigarh we are facing some developing issuses.