add Aircraft CRUD
This commit is contained in:
28
app/Repositories/AircraftRepository.php
Normal file
28
app/Repositories/AircraftRepository.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Models\Aircraft;
|
||||
use InfyOm\Generator\Common\BaseRepository;
|
||||
|
||||
class AircraftRepository extends BaseRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'icao',
|
||||
'name',
|
||||
'full_name',
|
||||
'registration',
|
||||
'active',
|
||||
];
|
||||
|
||||
/**
|
||||
* Configure the Model
|
||||
**/
|
||||
public function model()
|
||||
{
|
||||
return Aircraft::class;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user