phpvms/app/Repositories/RankRepository.php

26 lines
471 B
PHP
Raw Normal View History

2017-06-22 01:10:25 +08:00
<?php
namespace App\Repositories;
use App\Contracts\Repository;
2017-06-22 02:44:30 +08:00
use App\Models\Rank;
use Prettus\Repository\Contracts\CacheableInterface;
2018-02-21 12:33:09 +08:00
use Prettus\Repository\Traits\CacheableRepository;
2017-06-22 01:10:25 +08:00
class RankRepository extends Repository implements CacheableInterface
2017-06-22 01:10:25 +08:00
{
use CacheableRepository;
2017-06-22 01:10:25 +08:00
protected $fieldSearchable = [
'name' => 'like',
2017-06-22 01:10:25 +08:00
];
/**
* @return string
*/
2017-06-22 01:10:25 +08:00
public function model()
{
2017-06-22 02:44:30 +08:00
return Rank::class;
2017-06-22 01:10:25 +08:00
}
}