# Firebase Rules

\ <img src="https://docs.pixelstrap.net/laravel/taxido/assets/images/icons/cloudFirestore.png" alt="" data-size="line">**Firebase Rules:**
------------------------------------------------------------------------------------------------------------------------------------------

{% hint style="info" %} <i class="fa-bullhorn">:bullhorn:</i> NOTE :Before launching the app, ensure you have correctly set up the ADMIN LARAVEL and have added all necessary data through the admin panel.
{% endhint %}

{% hint style="info" %}
&#x20;NOTE : For Firebase Social Login, you need to enable billing on your Firebase account, as it is required.
{% endhint %}

For save data in Firebase storage and upload file,images,videos etc need to give permission

### **For store data in Firestore Database :**

1. On left hand side panel,go to build, select Firestore database.
2. Click on Create Database.<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FKBSOq4qSqONtNbRVy0WI%2Fimage.png?alt=media&#x26;token=bc25a905-03d1-48ed-8a3e-a1bc92b03d4d" alt=""><figcaption></figcaption></figure>
3. Then select mode wheather for live or debug mode need to use<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FZ9Yub6hpkZnDUVxjkTe4%2Fimage.png?alt=media&#x26;token=1abc789b-fabf-4fe0-8629-f774f9713c2d" alt=""><figcaption></figcaption></figure>
4. Now click Rules tab<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FBvsWENjbPRmnauTI7u13%2Fimage.png?alt=media&#x26;token=d672c3c1-c553-482c-8550-fc53f99b8a68" alt=""><figcaption></figcaption></figure>
5. Change condition by true<br>
6. After doing true click on publish button so that you can access database.

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FhA5mQN8PxGzNDr29FJ1E%2Fimage.png?alt=media&#x26;token=02960150-948e-4747-acce-95ae274b6c3b" alt=""><figcaption></figcaption></figure>

### **>For store Images, Videos, Audios, etc.:**

1. On left hand side panel,go to build, select Storage.
2. Click on Get started.<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2Fd2QI5ObcaMSp0sjFOFDf%2Fimage.png?alt=media&#x26;token=722cf73d-4f63-4d3c-9b5b-a091ddcf1c3d" alt=""><figcaption></figcaption></figure>
3. Then select mode wheather for live or debug mode need to use<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FWG73p9oGwmVCSwGYMolQ%2Fimage.png?alt=media&#x26;token=0d066c29-97cf-4fe4-909f-3794b06c9c3c" alt=""><figcaption></figcaption></figure>
4. Now click Rules tab<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FPMOQTa62hE1bYmfzj7L4%2Fimage.png?alt=media&#x26;token=37499be6-641c-4d8a-9c42-803685a19dbc" alt=""><figcaption></figcaption></figure>
5. Change condition by true<br>
6. After doing true click on publish button so that you can access database.\ <br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FtPfRMx8wRjaeBPda4oJD%2Fimage.png?alt=media&#x26;token=d66f3b57-d5d6-4239-91c2-94e9f3117098" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Now go to the Firebase SHA key: [SHA Key](https://docs.pixelstrap.net/laravel/taxido/firebase-rules.html).
{% endhint %}

\
\ <br>
