for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RichanFongdasen\EloquentBlameable;
use Illuminate\Support\ServiceProvider as Provider;
class ServiceProvider extends Provider
{
/**
* Check if the application runs with Lumen.
*
* @return bool
*/
protected function isLumen()
return strpos($this->app->version(), 'Lumen') !== false;
}
* Bootstrap the application services.
* @return void
public function boot()
if (!$this->isLumen()) {
$this->publishes([
realpath(__DIR__ . '/../config/blameable.php') => config_path('blameable.php'),
], 'config');
* Register the application services.
public function register()
$this->mergeConfigFrom(realpath(__DIR__ . '/../config/blameable.php'), 'blameable');
$this->app->singleton(BlameableObserver::class, function () {
return new BlameableObserver();
});
$this->app->singleton(BlameableService::class, function () {
return new BlameableService();