for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* NOTICE OF LICENSE
*
* Part of the Rinvex Repository Package.
* This source file is subject to The MIT License (MIT)
* that is bundled with this package in the LICENSE file.
* Package: Rinvex Repository Package
* License: The MIT License (MIT)
* Link: https://rinvex.com
*/
namespace Rinvex\Repository\Providers;
use Illuminate\Support\ServiceProvider;
use Rinvex\Repository\Listeners\RepositoryEventListener;
class RepositoryServiceProvider extends ServiceProvider
{
/**
* {@inheritdoc}
public function register()
// Merge config
$this->mergeConfigFrom(realpath(__DIR__.'/../../config/config.php'), 'rinvex.repository');
// Register the event listener
$this->app->bind('rinvex.repository.listener', RepositoryEventListener::class);
}
public function boot()
// Publish Resources
$this->publishResources();
// Subscribe the registered event listener
$this->app['events']->subscribe('rinvex.repository.listener');
* Publish resources.
protected function publishResources()
// Publish config
$this->publishes([
realpath(__DIR__.'/../../config/config.php') => config_path('rinvex.repository.php'),
], 'config');