PHP code example of eghamat24 / database-repository
1. Go to this page and download the library: Download eghamat24/database-repository 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/ */
eghamat24 / database-repository example snippets
// snip
if ($app->environment('local', 'testing')) {
$app->register(Eghamat24\DatabaseRepository\DatabaseRepositoryServiceProvider::class);
}
// snip
bash
php artisan vendor:publish --tag=database-repository-config
bash
php artisan repository:make-entity users