for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace C4tech\RayEmitter;
use C4tech\RayEmitter\Event\Store;
use Illuminate\Support\Facades\App;
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
class ServiceProvider extends BaseServiceProvider
{
protected $configPath = '';
protected $migrationPath = '';
/**
* @inheritDoc
*/
public function __construct($app)
$this->configPath = __DIR__ . '/../resources/config.php';
$this->migrationPath = __DIR__ . '/../resources/migrations';
parent::__construct($app);
}
public function boot()
$configs = [];
$configs[$this->configPath] = config_path('ray_emitter.php');
$this->publishes($configs, 'config');
$migrations = [];
$migrations[$this->migrationPath] = database_path('migrations');
$this->publishes($migrations, 'migrations');
public function register()
$this->mergeConfigFrom($this->configPath, 'ray_emitter');
App::singleton(
'rayemitter.store',
function () {
return new Store;
);
public function provides()
return ['rayemitter.store'];