PHP code example of kingdarkness / k-repository
1. Go to this page and download the library: Download kingdarkness/k-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/ */
kingdarkness / k-repository example snippets
php
$this->app->register(\KRepository\KRepositoryServiceProvider::class);
if (!empty(config('kproviders'))) {
foreach (config('kproviders') as $provider )
{
$this->app->register( $provider );
}
}
bash
$ php artisan vendor:publish --provider="KRepository\KRepositoryServiceProvider"
bash
$ php artisan make:repository User
bash
$ php artisan make:repository User --migration=true