Download the PHP package bhavinjr/laravel-wishlist without Composer
On this page you can find all versions of the php package bhavinjr/laravel-wishlist. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bhavinjr/laravel-wishlist
More information about bhavinjr/laravel-wishlist
Files in bhavinjr/laravel-wishlist
Informations about the package laravel-wishlist
laravel-wishlist
A simple Wishlist implementation for Laravel 5...
Installation
First, you'll need to install the package via Composer:
If you are don't use using Laravel 5.5.* Then, update config/app.php
by adding an entry for the service provider.
In command line paste this command:
In command line again, publish the default configuration file:
In command line paste this command:
Configuration
Configuration was designed to be as flexible.
global configuration can be set in the config/wishlist.php
file.
after update config/wishlist.php
file.
Usage
The package gives you the following methods to use:
Adding an item to the wishlist is really simple
you need specify product_id and user_id respectively all parameter are compulsory
Wishlist::add()
Wishlist::remove()
To remove an item from the wishlist, specify the wishlist_id.
Wishlist::getUserWishlist()
To get users all wishlist item, specify the user_id.
Wishlist::removeUserWishlist()
To remove users all wishlist item, specify the user_id.
Wishlist::removeByProduct()
To remove particular product using product_id, specify the product_id and user_id respectively.
Wishlist::count()
To count users all wishlist item, specify the user_id.
Wishlist::getWishlistItem()
To get particular wishlist item, specify the product_id and user_id respectively
You can also load product detail
All versions of laravel-wishlist with dependencies
illuminate/support Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*