2017-06-22 01:10:25 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Repositories;
|
|
|
|
|
2017-06-22 02:44:30 +08:00
|
|
|
use App\Models\Rank;
|
2017-12-07 12:48:42 +08:00
|
|
|
use App\Repositories\Traits\CacheableRepository;
|
2017-12-01 10:28:45 +08:00
|
|
|
use Prettus\Repository\Contracts\CacheableInterface;
|
2017-06-22 01:10:25 +08:00
|
|
|
|
2017-12-01 10:28:45 +08:00
|
|
|
class RankRepository extends BaseRepository implements CacheableInterface
|
2017-06-22 01:10:25 +08:00
|
|
|
{
|
2017-12-01 10:28:45 +08:00
|
|
|
use CacheableRepository;
|
|
|
|
|
2017-06-22 01:10:25 +08:00
|
|
|
protected $fieldSearchable = [
|
2017-12-02 00:53:33 +08:00
|
|
|
'name' => 'like',
|
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
|
|
|
}
|
|
|
|
}
|