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

24 lines
487 B
PHP

<?php
namespace App\Repositories;
use App\Models\User;
use Prettus\Repository\Contracts\CacheableInterface;
use Prettus\Repository\Traits\CacheableRepository;
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;
}
}