-
-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade from 6.x.x to last verision #531
Comments
Hello. duplicate #500 Don't forget the update instructions. |
Thank you for your response, i upgraded the project to laravel 9 and i can't do downgrade the package to (6.2.4), i already did the migration step of uuid filed and change the config file to new one, when i tired the command (php artisan bx:transfer:fix), i received that: Bavix\Wallet\Services\CastService::getWallet(): Argument #1 ($object) must be of type Bavix\Wallet\Interfaces\Wallet, null given, called in /home/abdelrahman/Code/tyqn/vendor/bavix/laravel-wallet/src/Commands/TransferFixCommand.php on line 37 at vendor/bavix/laravel-wallet/src/Services/CastService.php:28
20 artisan:37 |
when i comment the traits and implement the wallet like next is there a cache or something need to clear? Thank you |
I don't know what happen, but after more of trying the problem solved, Thank you. |
Hi, i did all migration step but i received next error
[2022-07-26 20:08:50] local.ERROR: Bavix\Wallet\Services\CastService::getWallet(): Argument #1 ($object) must be of type Bavix\Wallet\Interfaces\Wallet, null given, called in /home/abdelrahman/Code/tyqn/vendor/bavix/laravel-wallet/src/Commands/TransferFixCommand.php on line 37 {"exception":"[object] (TypeError(code: 0): Bavix\Wallet\Services\CastService::getWallet(): Argument #1 ($object) must be of type Bavix\Wallet\Interfaces\Wallet, null given, called in /home/abdelrahman/Code/tyqn/vendor/bavix/laravel-wallet/src/Commands/TransferFixCommand.php on line 37 at /home/abdelrahman/Code/tyqn/vendor/bavix/laravel-wallet/src/Services/CastService.php:28)
[stacktrace]
#0 /home/abdelrahman/Code/tyqn/vendor/bavix/laravel-wallet/src/Commands/TransferFixCommand.php(37): Bavix\Wallet\Services\CastService->getWallet()
#1 /home/abdelrahman/Code/tyqn/vendor/bavix/laravel-wallet/src/Commands/TransferFixCommand.php(25): Bavix\Wallet\Commands\TransferFixCommand->fix()
#2 /home/abdelrahman/Code/tyqn/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(98): Bavix\Wallet\Commands\TransferFixCommand->Bavix\Wallet\Commands\{closure}()
#3 /home/abdelrahman/Code/tyqn/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(53): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Concerns\{closure}()
#4 /home/abdelrahman/Code/tyqn/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(102): Illuminate\Database\Eloquent\Builder->chunk()
#5 /home/abdelrahman/Code/tyqn/vendor/bavix/laravel-wallet/src/Commands/TransferFixCommand.php(25): Illuminate\Database\Eloquent\Builder->each()
#6 /home/abdelrahman/Code/tyqn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Bavix\Wallet\Commands\TransferFixCommand->handle()
#7 /home/abdelrahman/Code/tyqn/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#8 /home/abdelrahman/Code/tyqn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#9 /home/abdelrahman/Code/tyqn/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#10 /home/abdelrahman/Code/tyqn/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): Illuminate\Container\BoundMethod::call()
#11 /home/abdelrahman/Code/tyqn/vendor/laravel/framework/src/Illuminate/Console/Command.php(139): Illuminate\Container\Container->call()
#12 /home/abdelrahman/Code/tyqn/vendor/symfony/console/Command/Command.php(308): Illuminate\Console\Command->execute()
#13 /home/abdelrahman/Code/tyqn/vendor/laravel/framework/src/Illuminate/Console/Command.php(124): Symfony\Component\Console\Command\Command->run()
#14 /home/abdelrahman/Code/tyqn/vendor/symfony/console/Application.php(998): Illuminate\Console\Command->run()
#15 /home/abdelrahman/Code/tyqn/vendor/symfony/console/Application.php(299): Symfony\Component\Console\Application->doRunCommand()
#16 /home/abdelrahman/Code/tyqn/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#17 /home/abdelrahman/Code/tyqn/vendor/laravel/framework/src/Illuminate/Console/Application.php(102): Symfony\Component\Console\Application->run()
#18 /home/abdelrahman/Code/tyqn/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\Console\Application->run()
#19 /home/abdelrahman/Code/tyqn/artisan(37): Illuminate\Foundation\Console\Kernel->handle()
#20 {main}
The text was updated successfully, but these errors were encountered: