for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
final class PersistenceServiceProvider extends ServiceProvider
{
public function register()
$driver = config('persistence.driver');
$config = config("persistence.repository-gateways");
foreach ($config as $gatewayInterface => $gatewayConcretions) {
$this->app->singleton($gatewayInterface, $gatewayConcretions[$driver]);
}