Closed tomatoTom closed 1 year ago
I would also love it if this was updated for Laravel 10.
Same, waiting to update to Laravel 10 until this package is compatible
Same, I would also love it if this was updated for Laravel 10 please
I would also love it if this was updated for Laravel 10.
Hi, people
I found some solutions to use this package compatible with Laravel 10
Using Vincent-dejong's version:
Add his repository in your composer.json
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Vincent-dejong/laravel-shopping-cart.git",
"no-api": true
}
],
Select a dev version to use his compatible branch
"bumbummen99/shoppingcart": "dev-update-laraval-10",
Using phobrv's version:
Add his repository in your composer.json
"repositories": [
{
"type": "vcs",
"url": "https://github.com/phobrv/LaravelShoppingcart.git",
"no-api": true
}
],
Select a dev version to use his compatible branch
"bumbummen99/shoppingcart": "dev-laravel10",
Using my forked library https://packagist.org/packages/anayarojo/shoppingcart
"anayarojo/shoppingcart": "^4.2.1"
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
Hi any update from official source ? for laravel 10 , just commenting to keep this issue open
Pls any update so far for laravel 10 from official source seriously stuck in my project
Check this comment https://github.com/bumbummen99/LaravelShoppingcart#attention
Because of that, currently, I'm using my own forked package
composer require anayarojo/shoppingcart
Some people have contributed here, you are welcome to contribute and use this forked library https://packagist.org/packages/anayarojo/shoppingcart https://github.com/anayarojo/laravel-shopping-cart
Check this comment https://github.com/bumbummen99/LaravelShoppingcart#attention
Because of that, currently, I'm using my own forked package
composer require anayarojo/shoppingcart
Some people have contributed here, you are welcome to contribute and use this forked library https://packagist.org/packages/anayarojo/shoppingcart https://github.com/anayarojo/laravel-shopping-cart
Can I also use yours
Sure @codeinvoke7, feel free to use it.
@anayarojo Can u tell me in details after adding the "repositories" in composer.json .... I add it after "require"{....} Then I added "bumbummen99/shoppingcart": "dev-laravel10", in require-dev{....} is it ok Do I now need to run composire require command ...How can I publish the vendor...It showing nothing to publish
Hi @Almoontasir, there are some solutions, what do you want to do?
composer.json
of your project, put the following repository:"repositories": [
{
"type": "vcs",
"url": "https://github.com/anayarojo/laravel-shopping-cart.git",
"no-api": true
}
],
bumbummen99/shoppingcart
package version from any to dev-laravel-10-support
. It'll look like this in composer.json
:"require": {
"bumbummen99/shoppingcart": "dev-laravel-10-support",
},
composer install
.Remove the old package by running composer remove bumbummen99/shoppingcart
Install new package by running composer require anayarojo/shoppingcart
Tnx bro
On Mon, May 8, 2023, 9:41 PM Raul Anaya Rojo @.***> wrote:
Hi @Almoontasir https://github.com/Almoontasir, there are some solutions, what do you want to do? Solution 1
- In the composer.json of your project, put the following repository:
"repositories": [ { "type": "vcs", "url": "https://github.com/anayarojo/laravel-shopping-cart.git", "no-api": true } ],
- Update the bumbummen99/shoppingcart package version from any to dev-laravel-10-support. It'll look like this in composer.json:
"require": { "bumbummen99/shoppingcart": "dev-laravel-10-support", },
- Finally, apply the changes by running composer install.
Solution 2
1.
Remove the old package by running composer remove bumbummen99/shoppingcart 2.
Install new package by running composer require anayarojo/shoppingcart
— Reply to this email directly, view it on GitHub https://github.com/bumbummen99/LaravelShoppingcart/issues/190#issuecomment-1538605867, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASDBZ7E5Z4KIMEKIXJ2HX3DXFEH2BANCNFSM6AAAAAAUYYCV7M . You are receiving this because you were mentioned.Message ID: @.***>
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
I have same issue, any news bro??
@anayarojo
i also use your package composer require anayarojo/shoppingcart on my laravel application but i have get an error. ![Uploading Screenshot_1.png…]()
@dayalsaha007 I can't see the image, please copy the error text to your comment or re-upload the image.
anayarojo/shoppingcart
Showing the following error : strlen(): Argument #1 ($string) must be of type string, array given
Hi @Shafique1970, Please provide me the complete exception stack, to detect the line number of the error.
Moreover, please check this answer: https://laracasts.com/discuss/channels/inertia/error-strlen-argument-1-string-must-be-of-type-string-array-given-with-anayarojoshoppingcart?page=1&replyId=907728
Thank you Sir,
On Sat, Sep 30, 2023 at 11:30 PM Raul Anaya Rojo @.***> wrote:
anayarojo/shoppingcart
Showing the following error : strlen(): Argument #1 https://github.com/bumbummen99/LaravelShoppingcart/pull/1 ($string) must be of type string, array given
Hi @Shafique1970 https://github.com/Shafique1970, Please provide me the complete exception stack, to detect the line number of the error.
— Reply to this email directly, view it on GitHub https://github.com/bumbummen99/LaravelShoppingcart/issues/190#issuecomment-1741819950, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBB3L6IYZCCFA6CMOHJPSDX5BJKHANCNFSM6AAAAAAUYYCV7M . You are receiving this because you were mentioned.Message ID: @.***>
Thank you Sir, As per your guideline the problem has been solved. But cartCount is not showing on Cart icon. The template is as follows :
{{$page.props.cartCount}}Regards
M.S. Islam
On Sun, Oct 1, 2023 at 10:16 PM MS Islam @.***> wrote:
Thank you Sir,
On Sat, Sep 30, 2023 at 11:30 PM Raul Anaya Rojo @.***> wrote:
anayarojo/shoppingcart
Showing the following error : strlen(): Argument #1 https://github.com/bumbummen99/LaravelShoppingcart/pull/1 ($string) must be of type string, array given
Hi @Shafique1970 https://github.com/Shafique1970, Please provide me the complete exception stack, to detect the line number of the error.
— Reply to this email directly, view it on GitHub https://github.com/bumbummen99/LaravelShoppingcart/issues/190#issuecomment-1741819950, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBB3L6IYZCCFA6CMOHJPSDX5BJKHANCNFSM6AAAAAAUYYCV7M . You are receiving this because you were mentioned.Message ID: @.***>
Hi @Shafique1970, the icon issue is not part of LaravelShoppingcart library, please check the Vue documentation: https://vuejs.org/api/built-in-directives.html#v-if
More over, make sure Vue component props are being updated correctly.
Check this comment https://github.com/bumbummen99/LaravelShoppingcart#attention
Because of that, currently, I'm using my own forked package
composer require anayarojo/shoppingcart
Some people have contributed here, you are welcome to contribute and use this forked library https://packagist.org/packages/anayarojo/shoppingcart https://github.com/anayarojo/laravel-shopping-cart
Bro created one demo project using laravel 10 i m beginning level, im install your packages and publish but.. How to use to my controller cart::add etc etc, how to improt that cart functions... 😭
Hi @Enterweb123, you can check a demo implementation in this repository https://github.com/bumbummen99/LaravelShoppingcartDemo/blob/master/app/Http/Controllers/CartController.php
And example here https://github.com/bumbummen99/LaravelShoppingcart#example
PHP 8.2, Laravel 10.0
Tried to install it via:
composer require bumbummen99/shoppingcart
Response: