Installation
Requirements
Before we start, make sure you have the following installed:
- PHP 8.1 or later
- Laravel 9 or later (Recommended Latest Laravel version)
- Composer
Installation
-
Install this package using composer:
composer require roddy/firestore-eloquent
-
Copy and paste this to your
.env
file and replaceyour-project-id
with your project ID:FIREBASE_PROJECT_ID=your-project-id
-
Publish the package configuration using Artisan:
php artisan vendor:publish --provider="Roddy\FirestoreEloquent\Providers\FModelProvider" --force
You can locate the configuration file in config/firebase.php
.