flight search and pagination (in admin), schema changes to accomodate
This commit is contained in:
@@ -3,15 +3,22 @@
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Models\Flight;
|
||||
use Prettus\Repository\Contracts\CacheableInterface;
|
||||
use Prettus\Repository\Traits\CacheableRepository;
|
||||
|
||||
class FlightRepository extends BaseRepository
|
||||
class FlightRepository extends BaseRepository implements CacheableInterface
|
||||
{
|
||||
use CacheableRepository;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'arr_airport_id',
|
||||
'dpt_airport_id',
|
||||
'arr_airport_id'
|
||||
'flight_number' => 'like',
|
||||
'route' => 'like',
|
||||
'notes' => 'like',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user