Closed linganmin closed 7 years ago
$this->app->singleton([ 'Toplan\Sms\SmsManager' => 'laravel-sms', ], function ($app) { $token = $app->request->header('access-token', null); if (empty($token)) { $token = $app->request->input('access_token', null); } $input = $app->request->all();
return new SmsManager($token, $input); });
$this->app->singleton([ 'Toplan\Sms\SmsManager' => 'laravel-sms', ], function ($app) { $token = $app->request->header('access-token', null); if (empty($token)) { $token = $app->request->input('access_token', null); } $input = $app->request->all();