Posts

Showing posts from January, 2021

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 ...

Chapter 23 - How to use Firebase Social Login Authentication in Laravel Socialite Package

Image
In this chapter, we will learn how to connect Laravel Socialite package to Firebase Authentication Social Login Provider. How to enable social option in Firebase Authentication Console and insert credentials of app and handling the callback from Social Login Page.  Before we start, we assume you have all knowledge of setting up the Firebase Authentication and Laravel Socialite package integration. If not please read this   Chapter 15  for Firebase Authentication and  Laravel Socialite . From Firebase Authentication Console. To Laravel Login with Social Options The very first step to enable all three social login providers from Firebase Authentication Panel. Simply click on sign in providers which you want, for example we have clicked on Facebook. Then click on enable. Here we assume, you know all the steps of creating app in Facebook, Google, Twitter and obtain their app id and secret. Just enter app id and secret and click on save. So now your Facebook is...