ActivismeBe Database Layering is a package for Laravel 5 which is used to abstract the database layer. This make applications much easier to maintain.
NOTE: This package can be used in Laravel 5.4 or higher.
You can install the package via composer:
composer require activismebe/database-layering
Now add the service provider in
'providers' => [ // ... ActivismeBE\DatabaseLayering\Repositories\Providers\RepositoryProvider::class, ];
You can publish the configuration file now with;
php artisan vendor:publish
After that u ready to go and completed the installation.