This is a project experiment to create a chatroom app with Laravel 5.6 and Firebase Realtime Database. This project uses a 'laravel-firebase-sync' package to synchronize models with data on firebase.
- Laravel 5.6
- Laravel Firebase Sync by @mpociot
- Clone this repository
git clone https://github.com/nauvalazhar/laravel-firebase-chatroom-example.git
- Run these commands
cd laravel-firebase-chatroom-example
composer install
# create .env file
cp .env.example .env
# migrate database
php artisan key:generate
# Set your database connection in .env file
php artisan migrate
- Go to the Firebase Console and create a new project
- Open the
config/services.php
file and adjust the details of your firebase project or see the instructions here - Done
MIT License