1. Go to this page and download the library: Download wandu/laravel-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/ */
wandu / laravel-repository example snippets
namespace Wandu\Laravel\Repository\Stubs\Repository;
use Wandu\Laravel\Repository\Repository;
use Wandu\Laravel\Repository\Stubs\Model\ArticleHit;
class ArticleHitRepository extends Repository
{
/** @var string */
protected $model = ArticleHit::class;
}
namespace Wandu\Laravel\Repository\Stubs\Repository;
use Wandu\Laravel\Repository\PaginationRepositoryInterface;
use Wandu\Laravel\Repository\Repository;
use Wandu\Laravel\Repository\Stubs\Model\User;
use Wandu\Laravel\Repository\Traits\UsePaginationRepository;
class UserRepository extends Repository implements PaginationRepositoryInterface
{
use UsePaginationRepository;
/** @var string */
protected $model = User::class;
}
namespace Wandu\Laravel\Repository\Stubs\Repository;
use Wandu\Laravel\Repository\MoreItemsRepositoryInterface;
use Wandu\Laravel\Repository\Repository;
use Wandu\Laravel\Repository\Stubs\Model\User;
use Wandu\Laravel\Repository\Traits\UseMoreItemsRepository;
class UserRepository extends Repository implements MoreItemsRepositoryInterface
{
use UseMoreItemsRepository;
/** @var string */
protected $model = User::class;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.