I am using laravel 6 and i have installed the provider Kreait\Firebase in my laravel package. i have created connection with firebase realtime database already and getting the data from my database. but i need a support from your guys to get the data oa specific radius. pls help me thanx in advance. I have used below code to get the data
$serviceAccount = ServiceAccount::fromJsonFile(public_path().'/gogorides-f382d11-firebase-adminsdk-f8od3-46c809e52e.json');
$firebase = (new Factory)
->withServiceAccount($serviceAccount)
->withDatabaseUri('https://gogorides-f382d.firebaseio.com/')
->create();
$database = $firebase->getDatabase();
$reference = $database->getReference('drivers')->orderByChild('id')->limitToFirst(2)->getSnapshot()->getValue();
print_r($reference);