Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255 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
Run composer update
Example 3: 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;