Run migrate
$ php artisan migrate
Install pakage
$ composer install --no-dev
$ npm install
Setup laravel echo server port 6001
- Make sure you have
redis
install on your computer. Try runredis-cli
in terminal to see - Make sure you run
redis-server
- Check if you have
laravel-echo-server
installed, otherwise install it by runningnpm install laravel-echo-server
$ laravel-echo-server init
Before start the project, open .env
, and update the following:
-
BROADCAST_DRIVER
change toredis
-
CACHE_DRIVER
change toredis
-
QUEUE_CONNECTION
change toredis
-
SESSION_DRIVER
change toredis
-
REDIS_HOST
change to host -
REDIS_PASSWORD
change to password -
REDIS_CLIENT=predis
-
APP_DEBUG=false
-
Key
AWS
,Google
,Mailer
Start the project:
php artisan server
php artisan queue:work --queue=default
php artisan schedule:work
laravel-echo-server start