for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bmatovu\HelloWorld;
use Illuminate\Support\ServiceProvider;
class HelloWorldServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../config/hello-world.php' => base_path('config/hello-world.php'),
], 'config');
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
}
* Register the application services.
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/hello-world.php', 'hello-world');
$this->app->bind('hello-world', function () {
return new HelloWorld();
});