tutorial-laravel-4-real-time-chat icon indicating copy to clipboard operation
tutorial-laravel-4-real-time-chat copied to clipboard

php artisan chat:serve

Open umairali opened this issue 10 years ago • 1 comments

Hi

I added

$emitter = new \Evenement\EventEmitter(); $chat = new \Formativ\Chat\Chat($emitter); Artisan::add(new Formativ\Chat\Command\Serve($chat));

in app/start/artisan.php to call php artisan chat:serve command but its not working

is this correct to call php artisan chat:serve command?

umairali avatar Dec 30 '14 20:12 umairali

I found a solution to run this on CentOS 7 if i run this command php artisan chat:serve from shel Putty port on server opened and communication start Now i want to run this command automatically when user open website i add

Artisan::add

command but its not work i try

Artisan::add(new Serve);

but if i use this command error appear

PHP Fatal error: Class 'Serve' not found in /home/test/chat/public_html/app/start/artisan.php on line 19 {"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class 'Serve' not found","file":"/home/test/chat/public_html/app/start/artisan.php","line":19}}

umairali avatar Dec 30 '14 20:12 umairali