Releases: golam-sorwar/Shopping-Cart
Releases · golam-sorwar/Shopping-Cart
Wiring Up Livewire & Echo Together!
Cart blade file, emit and event file updated
Installing Laravel Echo
Driver Prerequisites
Pusher Channels
$ composer require pusher/pusher-php-server "~4.0"
instantiating the Echo instance in your resources/js/bootstrap.js file:
npm install 1st
$ npm install
Installing Echo
npm install --save laravel-echo pusher-js
Listening For Events
broadcastOn() {
return new Channel('cart');
}
cart blade page setup
Using Events For Component Communication
v1.1 Using Events For Component Communication
Wiring Up Livewire
v1.0 update remove query using detach