Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, queueing, and caching.
Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked.
Documentation for the framework can be found on the Laravel website.
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
The Laravel framework is open-sourced software licensed under the MIT license Larasocket
[TOC]
Chat application using Laravel, Redis, socket.io and node js
You need to have following installed:
- Laravel
- Redis you can check installation of Redis using
redis-cli monitor
orredis-cli ping
command from your terminal The outputs of both commands would be "OK" and "PONG"- nodejs you can check whether you have installed node on your machine by using
node -v
which outputs "v10.0" or something- socket.io
You can clone repository using following git command
or you can directly download the zip and move to your local repository from Github
composer install
php artisan migrate
DB_HOST=HOST_NAME DB_DATABASE=DATABASE_NAME DB_USERNAME=DB_USERNAME DB_PASSWORD=DB_PASSWORD
redis-server
$ cd nodejs
$nodejs server.js
That's it
point url to
localhost/larasocket/public/home/
Here You will be redirected to Login page .Just click on register and login .Similarly open another browser and register with different user and login.Hooray!.Got it??