2017-06-23 09:55:45 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Repositories;
|
|
|
|
|
|
|
|
use App\Models\Subfleet;
|
2017-12-02 00:53:33 +08:00
|
|
|
use Prettus\Repository\Contracts\CacheableInterface;
|
|
|
|
use Prettus\Repository\Traits\CacheableRepository;
|
2017-06-23 09:55:45 +08:00
|
|
|
|
2017-12-02 00:53:33 +08:00
|
|
|
class SubfleetRepository extends BaseRepository implements CacheableInterface
|
2017-06-23 09:55:45 +08:00
|
|
|
{
|
2017-12-02 00:53:33 +08:00
|
|
|
use CacheableRepository;
|
2017-08-25 02:03:10 +08:00
|
|
|
|
2017-12-02 00:53:33 +08:00
|
|
|
protected $fieldSearchable = [
|
|
|
|
'name' => 'like',
|
|
|
|
'type' => 'like',
|
2017-06-23 09:55:45 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
public function model()
|
|
|
|
{
|
|
|
|
return Subfleet::class;
|
|
|
|
}
|
|
|
|
}
|