|
|
@ -27,11 +27,16 @@ class AppServiceProvider extends ServiceProvider |
|
|
|
$service->extend('socket', function ($app) { |
|
|
|
return new SocketChannel(new HttpClient, config('socket.url')); |
|
|
|
}); |
|
|
|
$service->extend('db', function ($app) { |
|
|
|
return new DBChannel(); |
|
|
|
}); |
|
|
|
// $service->extend('db', function ($app) {
|
|
|
|
// return new DBChannel();
|
|
|
|
// });
|
|
|
|
$service->extend('sms', function ($app) { |
|
|
|
return new SmsChannel(new HttpClient, config('smsirlaravel.webservice-url')); |
|
|
|
return new SmsChannel( |
|
|
|
new HttpClient, |
|
|
|
config('smsirlaravel.webservice-url'), |
|
|
|
config('smsirlaravel.api-key'), |
|
|
|
config('smsirlaravel.secret-key'), |
|
|
|
); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|