Artisan Generators
Install: cart:install
Publishes the config file and scaffolds app/Cart/ with subdirectories for your coupons, tax rules, shipping rates, and custom drivers.
php artisan cart:install
Generate a Coupon: cart:make:coupon
php artisan cart:make:coupon TenPercentOff
Creates app/Cart/Coupons/TenPercentOff.php extending Wearepixel\Cart\Coupons\Coupon.
Generate a Tax Rule: cart:make:tax
php artisan cart:make:tax GstTaxRule
Creates app/Cart/Tax/GstTaxRule.php extending Wearepixel\Cart\Tax\TaxRule.
Generate a Shipping Rate: cart:make:shipping
php artisan cart:make:shipping FlatRateShipping
Creates app/Cart/Shipping/FlatRateShipping.php extending Wearepixel\Cart\Shipping\ShippingRate.
Generate a Custom Driver: cart:make:driver
php artisan cart:make:driver ElasticsearchDriver
Creates app/Cart/Drivers/ElasticsearchDriver.php implementing CartDriver.
Debug: cart:debug
Dumps the current cart state. Not available in production.
php artisan cart:debug