PHP code example of devcortes / laravel-clean-architecture
1. Go to this page and download the library: Download devcortes/laravel-clean-architecture library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
devcortes / laravel-clean-architecture example snippets
use App\Src\Product\Infrastructure\Persistence\Repositories\ProductRepositoryInterface;
use App\Src\Product\Infrastructure\Persistence\Repositories\MongoProductRepository;
$this->app->bind(ProductRepositoryInterface::class, MongoProductRepository::class);