Posts

Showing posts from July, 2020

How to make Firebase query search not case sensitive #18

Image
How to make Firebase query search not case sensitive because you know Firebase provide exact match "==" with case sensitive. So we will solve this issue in the chapter in detail. We will use the Laravel PHP SDK for the firebase for all the queries stuff. Also we will see case insensitive sorting with Firebase orderBy using Firebase search ignoring case. Now lets consider a simple example, you have 'Student' list and you want to search by name. So the main use of any search is that, you insert one or two characters and the system should search the most matching one, but that not the case in Firebase. Firebase is a case sensitive. Means string "Name" and "name" are two different values for Firebase. All Firebase developers are facing this issue, which is most basic necessity. So lets first understand, currently what is provided by Firebase. See the below example of Student List. Now here you see, we have a Student ...

How to Upload files with Cloud Storage on Web - Firebase #19

Image
In this chapter, we will learn how to upload an image to the Firebase Storage from the Laravel PHP project using the kreait/laravel-firebase package. First of all you have to visit the Storage tab in the Firebase. And click on the "Get Started". Then on click of get started, you will find two options to setup the rules and the location. For now keep the rules as it is. By default, rules would be allowed all reads and writes from authenticated users. You can learn more for making it more secure, but its not generally required. Now the free Blaze plan does not allow the location change. It will default to us-central. After successful setup, you would land to the root folder. This is similar to any folder structure. You can create any n level folders. We have created the Student folder and will upload student images with Firebase doc id of Stude...