Currently I am trying to setup socket.io & redis for my laravel 5 project. I've created a event that uses Interface Illuminate\\Contracts\\Broadcasting\\ShouldBroadcast. But I am getting the following error :
Interface 'Illuminate\Contracts\Broadcasting\ShouldBroadcast' not found
Laravel 5.0 does not have event broadcasting, that's why the interface can't be found. See the Event docs here from 5.0:
https://laravel.com/docs/5.0/events
Broadcasting was introduced in 5.1:
https://laravel.com/docs/5.1/events#broadcasting-events
Some reference material:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.