extend('fcm', function ($app) { return new FcmChannel(new HttpClient, config('fcm.key')); }); $service->extend('socket', function ($app) { return new SocketChannel(new HttpClient, config('socket.url')); }); $service->extend('db', function ($app) { return new DBChannel(); }); $service->extend('sms', function ($app) { return new SmsChannel(new HttpClient, config('smsirlaravel.webservice-url')); }); }); } /** * Bootstrap any application services. * * @return void */ public function boot() { // } }