for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CraftedSystems\LaravelSMS;
use CraftedSystems\LaravelSMS\Console\MakeGatewayCommand;
use Illuminate\Support\ServiceProvider;
class SMSServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
$this->publishes([
__DIR__.'/Config/sms.php' => config_path('sms.php'),
config_path
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
__DIR__.'/Config/sms.php' => /** @scrutinizer ignore-call */ config_path('sms.php'),
], 'laravel_sms_config');
$this->app->singleton(SMS::class, function () {
return new SMS();
});
$this->app->alias(SMS::class, 'sms');
if ($this->app->runningInConsole()) {
$this->commands([
MakeGatewayCommand::class,
]);
}
* Register the application services.
public function register()
$this->mergeConfigFrom(
__DIR__.'/Config/sms.php',
'laravel-sms'
);