Skip to content

Releases: golam-sorwar/Shopping-Cart

Wiring Up Livewire & Echo Together!

17 Aug 16:15
Compare
Choose a tag to compare

Cart blade file, emit and event file updated

Installing Laravel Echo

17 Aug 15:07
Compare
Choose a tag to compare

Driver Prerequisites


Pusher Channels
  $  composer require pusher/pusher-php-server "~4.0"

instantiating the Echo instance in your resources/js/bootstrap.js file:
Screen Shot 2019-08-17 at 8 56 06 PM


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
Screen Shot 2019-08-17 at 9 06 14 PM

Using Events For Component Communication

17 Aug 10:16
Compare
Choose a tag to compare
v1.1

Using Events For Component Communication

Wiring Up Livewire

17 Aug 09:22
Compare
Choose a tag to compare
v1.0

update remove query using detach