for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Laravelsms\Sms;
use Illuminate\Support\ServiceProvider;
use Laravelsms\Sms\Manager;
class SmsServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;
* Perform post-registration booting of services.
* @return void
public function boot()
$this->publishes([
__DIR__ . '/config/sms.php' => config_path('sms.php'),
], 'phpsms');
}
* Register the application services.
public function register()
$this->app->singleton('sms', function () {
return new Manager($this->app);
});
* Get the services provided by the provider.
* @return array
public function provides()
return ['sms'];