Files
phpvms/app/Repositories/AircraftRepository.php
2017-12-01 10:53:33 -06:00

24 lines
471 B
PHP

<?php
namespace App\Repositories;
use App\Models\Aircraft;
use Prettus\Repository\Contracts\CacheableInterface;
use Prettus\Repository\Traits\CacheableRepository;
class AircraftRepository extends BaseRepository implements CacheableInterface
{
use CacheableRepository;
protected $fieldSearchable = [
'name' => 'like',
'registration' => 'like',
'active',
];
public function model()
{
return Aircraft::class;
}
}