Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1 usol@usol-HP-EliteBook-8 code example

Example 1: Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

"extra": {
    "laravel": {
        "dont-discover": [
            "laravel/dusk"
        ]
    }
},

and also do composer update

Example 2: Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

updating in file  vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php
$installed = json_decode($this->files->get($path), true);
$packages = $installed['packages'] ?? $installed;

Tags:

Php Example