Update Laravel 6 problem

Laraship QuestionsCategory: TechnicalUpdate Laravel 6 problem
Nguyen Duy Tien asked 5 years ago
As step by step as guideline, I upgrade Laraship to Larvel 6, there is an issue in "Composer Update" step as following: In Currency.php line 275: Class 'Torann\Currency\Drivers\Database' not found
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 How can I resolve this issue? 
1 Answers
laraship Staff answered 5 years ago
Hello, In Laraship 6 Torann\Currency package is not used anymore so, something you didn't copy correctly, please check Payment module and especially Corals/modules/Payment/composer.json
Nguyen Duy Tien replied 5 years ago

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,

laraship Staff replied 5 years ago

Hello, can you past the content of Corals/modules/Payment/composer.json here

Nguyen Duy Tien replied 5 years ago

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”
}
}

Nguyen Duy Tien replied 5 years ago

Do you have any solution for this issue?

laraship Staff replied 5 years ago

Hello, Please try deleting the file composer.lock on root folder and then run the command: composer update again

Cécile Leong replied 5 years ago

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

cpt_colt replied 5 years ago

I have the same problem. Removing composer.lock does not help

Cécile Leong replied 5 years ago

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.