Category: laravel
-
adding new livewire component from laravel shell
for creating a livewire component including related view you typically run the above command will create a livewire component StaffLogin and a related staff-login.blade.php
-
Live chat in Laravel using Ratchet
Install ratchet library using composer. Then create a websocket server file example websocker-server.php in project root. example code Then you need to create the chat class which will have methods for socket evens like onOpen, onMessage and onClose etc. like example below. This file Chat.php is typically placed in App/Websockets folder. and finally the chat…