for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BeyondCode\SelfDiagnosis;
use Illuminate\Support\ServiceProvider;
class SelfDiagnosisServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
$this->loadTranslationsFrom(__DIR__.'/../translations', 'self-diagnosis');
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../translations' => resource_path('lang/vendor/self-diagnosis'),
], 'translations');
__DIR__.'/../config/config.php' => config_path('self-diagnosis.php'),
], 'config');
}
* Register the application services.
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'self-diagnosis');
$this->app->bind('command.selfdiagnosis', SelfDiagnosisCommand::class);
$this->commands([
'command.selfdiagnosis',
]);