Best laravel framework open-source packages.

Laravel reactjs socketio chat

For educational purposes
Updated 6 months ago

LaraChat Installation

Redis is required.

git clone https://github.com/aligalipcamli/laravel-reactjs-socketio-chat.git
cd laravel-reactjs-socketio-chat
curl -sS https://getcomposer.org/installer | php
php composer.phar install
php composer.phar run-script all

Set database connection in .env file. For sqlite, make sure you write the absolute path.

php artisan migrate
npm install
php artisan serve

It tries to serve on port 8000. Open a new tab in the terminal and in the root directory, type:

./node_modules/laravel-echo-server/bin/server.js init

Steps should look like these:

? Do you want to run this server in development mode? Yes
? Which port would you like to serve from? 6001
? Which database would you like to use to store presence channel members? redis
? Enter the host of your Laravel authentication server. http://localhost:8000
? Will you be serving on http or https? http
? Do you want to generate a client ID/Key for HTTP API? Yes
? Do you want to setup cross domain access to the API? No
? What do you want this config to be saved as? laravel-echo-server.json
appId: 0bd9a970d761cae2
key: ba6e6627e0ef39847a72adb81caf0a2f
Configuration file saved. Run laravel-echo-server start to run server.

laravel-echo-server.json file is created. Beware that the port of the laravel authentication server is 8000 when artisan is served as default.

./node_modules/laravel-echo-server/bin/server.js start

Open http://localhost:8000 in the browser.


Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and 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:

Laravel is accessible, yet powerful, providing tools needed for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework.

If you're not in the mood to read, Laracasts contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page:

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.