for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Daaner\TurboSMS;
use Illuminate\Support\ServiceProvider;
class TurboSMSServiceProvider extends ServiceProvider
{
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
$this->publishes([
__DIR__.'/../config/turbosms.php' => config_path('turbosms.php'),
], 'config');
__DIR__.'/../resources/lang' => "{$this->app['path.lang']}/vendor/turbosms",
]);
$this->loadTranslationsFrom(__DIR__.'/../resources/lang/', 'turbosms');
}
* Register services.
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/turbosms.php', 'turbosms');
$this->app->singleton('turbosms', function () {
return $this->app->make(TurboSMS::class);
});
$this->app->alias('turbosms', 'TurboSMS');