Laravel ServiceProvider for eelkevdbos/firebase-php Library
elsangedy/laravel-firebase is a Laravel package for laravel serviceprovider for eelkevdbos/firebase-php library.
It currently has 6 GitHub stars and 708 downloads on Packagist.
Install it with composer require elsangedy/laravel-firebase.
Discover more Laravel packages by elsangedy
or browse all Laravel packages to compare alternatives.
Last updated
Laravel ServiceProvider for eelkevdbos/firebase-php Library
Composer is the recommended way to install this package. Run this command:
composer require elsangedy/laravel-firebase
Once composer has installed the package add this line of code to the providers array located in your config/app.php file:
LaravelFirebase\LaravelFirebaseServiceProvider::class
To publish this package configuration run:
php artisan vendor:publish
Edit the config/firebase.php file, enter your url and your secret.
<?php
namespace App\Http\Controllers;
use Firebase\Firebase;
class FirebaseController extends Controller
{
public function index(Firebase $firebase)
{
$endpoint = '/exaple';
$data = $firebase->get($endpoint);
return $data;
}
}