phpvms/app/Repositories/UserRepository.php

24 lines
487 B
PHP
Raw Normal View History

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