PHP code example of antarctica / laravel-base-repositories
1. Go to this page and download the library: Download antarctica/laravel-base-repositories 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/ */
antarctica / laravel-base-repositories example snippets
use Antarctica\LaravelBaseRepositories\Repository\BaseRepositoryInterface;
abstract class BaseRepositoryEloquent implements BaseRepositoryInterface {
}
use Antarctica\LaravelBaseRepositories\Repository\BaseRepositoryEloquent;
use User;
class UserRepositoryEloquent extends BaseRepositoryEloquent {
/**
* @var User
*/
protected $model;
/**
* @param User $model
*/
function __construct(User $model)
{
$this->model = $model;
}
}