roddy/firestore-eloquent

Firestore Eloquent, an object-relational mapper (ORM) that makes it enjoyable to interact with your database. When using Eloquent, each firestore collection has a corresponding "Model"/"Class" that is used to interact with that collection. In addition to retrieving records from the firestore collect

v2.0.0 2024-03-27 02:15 UTC

This package is auto-updated.

Last update: 2024-04-27 02:44:56 UTC


README


Logo


This package is a customized version of Laravel Eloquent designed for seamless integration with Google Firestore within Laravel applications. Firestore boasts exceptional scalability and speed, but it provides a more limited feature set compared to conventional SQL databases.

Table of Contents

Requirements

Installation

  1. Install this package using composer

     composer require roddy/firestore-eloquent
  2. Add the following line to the service providers array within your config/app.php file:

    Roddy\FirestoreEloquent\Providers\FModelProvider::class,
  3. Copy and paste this to your .env file and replace path/to/firebase-credentials.json with the path to your credentials json file.

    GOOGLE_APPLICATION_CREDENTIALS=path/to/firebase-credentials.json
  4. Copy and paste this to your .env file and replace https://<your-project>.firebaseio.com with the database URL for your project. You can find the database URL for your project at https://console.firebase.google.com/u/project/_/settings/general

     FIREBASE_DATABASE_URL=https://<your-project>.firebaseio.com
  5. Copy and paste this to your .env file and replace your-project-id with your project id.

    FIREBASE_PROJECT_ID=your-project-id
  6. 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.

Documentation

Visit Laravel Firestore Eloquent for documentation.

OR

Use this link https://firestore-eloquent.netlify.app/

Limitations

Limitations for documentation.

TODO

Todo for documentation.

License

The MIT License (MIT). Please see License File for more information.

Acknowledgments

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d46726564647957686573742f6669726573746f72652d656c6f7175656e74

Financial Contributors

Become a financial contributor and help us sustain our community.

Buy Me A Coffee