16/08
2016
dev-master
9999999-devFirebase wrapper library for Laravel
The Requires
by Jordy van Londen
Firebase wrapper library for Laravel
composer require vanlonden/pusher
VanLonden\Pusher\PusherServiceProvider::class,
to the providers
in config/app.php
artisan vendor:publish
config/pusher.php
to your likingFIREBASE_SERVER_KEY
to your .env fileartisan migrate
// Send a push message to all users $this->pusher->send('Title', 'A message', User::all()); // Create a future push message $futurePush = FuturePush::create([ 'time' => '2016-08-03 17:00', 'title' => 'Title', 'message' => 'A message', ]); $futurePush->users()->saveMany(User::all()); // Send a future push message $this->pusher->sendFuture(FuturePush::first());
Firebase wrapper library for Laravel