#32 assign aircraft to subfleets, and aircraft to subfleets
This commit is contained in:
@@ -13,7 +13,7 @@ class AircraftService extends BaseService
|
||||
AircraftClass $class = null
|
||||
) {
|
||||
|
||||
$repo = app('App\Repositories\AircraftRepository');
|
||||
$repo = app('App\Repositories\SubfleetRepository');
|
||||
try {
|
||||
$model = $repo->create($attributes);
|
||||
} catch (Exception $e) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use App\Repositories\AircraftRepository;
|
||||
use App\Repositories\SubfleetRepository;
|
||||
|
||||
|
||||
class PIREPService extends BaseService {
|
||||
@@ -13,7 +13,7 @@ class PIREPService extends BaseService {
|
||||
* return a PIREP model
|
||||
*/
|
||||
public function __construct(
|
||||
AircraftRepository $aircraft
|
||||
SubfleetRepository $aircraft
|
||||
) {
|
||||
$this->aircraft = $aircraft;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user