flight search and pagination (in admin), schema changes to accomodate
This commit is contained in:
@@ -3,10 +3,14 @@
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Models\Airport;
|
||||
use Prettus\Repository\Contracts\CacheableInterface;
|
||||
use Prettus\Repository\Traits\CacheableRepository;
|
||||
|
||||
|
||||
class AirportRepository extends BaseRepository
|
||||
class AirportRepository extends BaseRepository implements CacheableInterface
|
||||
{
|
||||
use CacheableRepository;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
@@ -21,4 +25,10 @@ class AirportRepository extends BaseRepository
|
||||
{
|
||||
return Airport::class;
|
||||
}
|
||||
|
||||
public function create(array $attributes)
|
||||
{
|
||||
//$attributes['id'] = $attributes['icao'];
|
||||
return parent::create($attributes);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user