for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Nwidart\LaravelBroadway;
use Illuminate\Support\ServiceProvider;
class LaravelBroadwayServiceProvider extends ServiceProvider
{
public function register()
$this->registerConfiguration();
$this->registerMigrations();
$this->app->register(\Nwidart\LaravelBroadway\Broadway\EventServiceProvider::class);
$this->app->register(\Nwidart\LaravelBroadway\Broadway\CommandServiceProvider::class);
$this->app->register(\Nwidart\LaravelBroadway\Broadway\SerializersServiceProvider::class);
$this->app->register(\Nwidart\LaravelBroadway\Broadway\EventStorageServiceProvider::class);
$this->app->register(\Nwidart\LaravelBroadway\Broadway\SupportServiceProvider::class);
$this->app->register(\Nwidart\LaravelBroadway\Broadway\ReadModelServiceProvider::class);
$this->app->register(\Nwidart\LaravelBroadway\Broadway\MetadataEnricherServiceProvider::class);
}
/**
* Register the configuration file so Laravel can publish them
* Also merges the published config file with original
*/
private function registerConfiguration()
$configPath = __DIR__ . '/../config/broadway.php';
$this->mergeConfigFrom($configPath, 'broadway');
$this->publishes([$configPath => config_path('broadway.php')]);
* Register the migrations so Laravel can publish them
private function registerMigrations()
$this->publishes([
__DIR__ . '/../migrations' => base_path('database/migrations'),
]);