Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 How can I resolve this issue?
Thank you for the prompt support.
I copied all Laraship 6 package and pasted it into existing root project folder to overide old files and then execute “composer update” command. What mistakes did I make in that process?
Thanks,
Hello, can you past the content of Corals/modules/Payment/composer.json here
Here you are:
{
“require”: {
“php-http/client-common”: “^1”,
“php-http/guzzle6-adapter”: “^1.1”,
“php-http/message”: “^1.5”,
“php-http/discovery”: “^1.2.1”,
“moneyphp/money”: “^3.1”,
“psr/http-client”: “^0.1.0”
}
}
Do you have any solution for this issue?
Hello, Please try deleting the file composer.lock on root folder and then run the command: composer update again
Hi, got similar issue with the error below:
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover –ansi
In CustomFieldsModelTrait.php line 82:
Class ‘Str’ not found
Script @php artisan package:discover –ansi handling the post-autoload-dump event returned with error code 1
even deleting file composer.lock, the problem stilll remains
Please assist
I have the same problem. Removing composer.lock does not help
problem resolved, some folders on server are write protected so unable to unzip and update correctly laraship. Need just to change file access permission then unzip again laraship.
Please login or Register to submit your answer