Open umairali opened 9 years ago
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}}
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?