for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Andreshg112\PusherApiNotifications;
use Illuminate\Support\ServiceProvider;
class PusherApiServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
// Bootstrap code here.
/*
* Here's some example code we use for the pusher package.
$this->app->when(Channel::class)
->needs(Pusher::class)
->give(function () {
$pusherConfig = config('broadcasting.connections.pusher');
return new Pusher(
$pusherConfig['key'],
$pusherConfig['secret'],
$pusherConfig['app_id']
);
});
}
* Register the application services.
public function register()