Split out the saveRoute() fn so it's only during a manual filing, not ACARS
This commit is contained in:
@@ -290,9 +290,10 @@ class PirepController extends RestController
|
||||
Log::info('Posting ACARS log', $request->toArray());
|
||||
|
||||
$attrs = $this->getFromReq($request, [
|
||||
'log' => 'required',
|
||||
'lat' => 'nullable',
|
||||
'lon' => 'nullable',
|
||||
'log' => 'required',
|
||||
'lat' => 'nullable',
|
||||
'lon' => 'nullable',
|
||||
'created_at' => 'nullable',
|
||||
], ['pirep_id' => $id, 'type' => AcarsType::LOG]);
|
||||
|
||||
$acars = Acars::create($attrs);
|
||||
|
||||
Reference in New Issue
Block a user