phpvms/app/Repositories/UserRepository.php
2017-12-06 22:48:42 -06:00

24 lines
485 B
PHP

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