Skip to content

Miscellaneous

Cross Browser Support

You must have the LaraCart database migration and migrate. To enable just change it in your config!

'cross_devices' => true

{danger} You must be using the Auth Manager, and may have to update the migration to fit your needs.

Events

EventFunctions that fire the event
laracart.newLaraCart::setInstance()
laracart.updateLaraCart::update()
laracart.addItemLaraCart::add(), LaraCart::addLine()
laracart.updateItemLaraCart::updateItem(), LaraCart::generateHash()
laracart.removeItemLaraCart::removeItem()
laracart.emptyLaraCart::emptyCart()
laracart.destroyLaraCart::destroyCart()

Exceptions

ExceptionReason
InvalidPriceWhen trying to give an item a non currency format
InvalidQuantityWhen trying to give an item a non-integer for a quantity
CouponExceptionWhen a coupon either is expired or an invalid amount
ModelNotFoundWhen you try to relate a model that does not exist
InvalidTaxableValueEither a tax value is invalid or taxable is not a boolean