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