2017 © Pedro Peláez
 

library cart

A cart

image

bektas/cart

A cart

  • Friday, June 29, 2018
  • by bektasyildiz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 225 % Grown

The README.md

Cart

Build Status styleci Scrutinizer Code Quality SensioLabsInsight Coverage Status, (*1)

Packagist Packagist Packagist, (*2)

Package description: Laravel 5 cart., (*3)

Installation

Install via composer, (*4)

composer require bektas/cart dev-master

Register Service Provider

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 Facade

Register package facade in config/app.php in aliases section, (*7)

Bektas\Cart\Facades\Cart::class,

Publish Configuration File

php artisan vendor:publish --provider="Bektas\Cart\ServiceProvider" --tag="config"

Usage

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');

Security

If you discover any security related issues, please email bektasstar@gmail.com instead of using the issue tracker., (*8)

Credits

This package is bootstrapped with the help of melihovv/laravel-package-generator., (*9)

The Versions

29/06 2018

dev-master

9999999-dev

A cart

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bektaş

laravel cart cart library eloquent cart