extend('echomail', function ($app) { return new EchomailChannel($app->make(Echomail::class)); }); $service->extend('netmail', function ($app) { return new NetmailChannel($app->make(Netmail::class)); }); }); } /** * Bootstrap any application services. * * @return void */ public function boot() { static::bootSingleOrFail(); Auth::viaRequest('matrix-token',function (Request $request) { return (config('matrix.hs_token') && ($request->bearerToken() === config('matrix.hs_token'))) ? TRUE : NULL; }); } }