dev-master
9999999-devA cart
MIT
The Requires
- php >=7.0
- illuminate/support ~5.6.0
The Development Requires
by Bektaş
laravel cart cart library eloquent cart
A cart
Package description: Laravel 5 cart., (*3)
Install via composer, (*4)
composer require bektas/cart dev-master
Note! This and next step are optional if you use laravel>=5.5 with package auto discovery feature., (*5)
Add service provider to config/app.php
in providers
section, (*6)
Bektas\Cart\ServiceProvider::class,
Register package facade in config/app.php
in aliases
section, (*7)
Bektas\Cart\Facades\Cart::class,
php artisan vendor:publish --provider="Bektas\Cart\ServiceProvider" --tag="config"
Cart::add([ 99, "Başlık", 10, 1, ['renk' => 'mavi'] ]); Cart::content(); Cart::activeContent(); Cart::getRow($rowID); Cart::updateQty($rowID, $qty); Cart::update($rowID, ['name' => 'change', 'options' => ['renk' => 'Kırmızı']]); Cart::count(); Cart::activeCount(); Cart::changeRowStatus($rowID, 0); // 0 => Pasif, 1 => Aktif Cart::remove($rowID); Cart::total(); Cart::destroy(); Cart::activeDestroy(); Cart::checkRowId($rowID); Cart::getOptVal($options, 'renk');
If you discover any security related issues, please email bektasstar@gmail.com instead of using the issue tracker., (*8)
This package is bootstrapped with the help of melihovv/laravel-package-generator., (*9)
A cart
MIT
laravel cart cart library eloquent cart