#14 initial scaffolding for adding flights/schedules
This commit is contained in:
25
app/Repositories/FlightRepository.php
Normal file
25
app/Repositories/FlightRepository.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Models\Flight;
|
||||
use InfyOm\Generator\Common\BaseRepository;
|
||||
|
||||
class FlightRepository extends BaseRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'dpt_airport_id',
|
||||
'arr_airport_id'
|
||||
];
|
||||
|
||||
/**
|
||||
* Configure the Model
|
||||
**/
|
||||
public function model()
|
||||
{
|
||||
return Flight::class;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user