cleanup aircraft table/repo
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Models\AircraftClass;
|
||||
|
||||
class AircraftClassRepository extends BaseRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'class',
|
||||
'name',
|
||||
'notes'
|
||||
];
|
||||
|
||||
/**
|
||||
* Configure the Model
|
||||
**/
|
||||
public function model()
|
||||
{
|
||||
return AircraftClass::class;
|
||||
}
|
||||
}
|
||||
@@ -11,9 +11,7 @@ class AircraftRepository extends BaseRepository
|
||||
*/
|
||||
protected $fieldSearchable
|
||||
= [
|
||||
'icao',
|
||||
'name',
|
||||
'full_name',
|
||||
'registration',
|
||||
'active',
|
||||
];
|
||||
@@ -25,9 +23,4 @@ class AircraftRepository extends BaseRepository
|
||||
{
|
||||
return Aircraft::class;
|
||||
}
|
||||
|
||||
public function findByICAO($icao)
|
||||
{
|
||||
return $this->findByField('icao', $icao)->first();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user