Make sure user and acars data is sent from API
This commit is contained in:
@@ -162,13 +162,17 @@ class PirepController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $pirep_id
|
||||
* @param string $id The PIREP ID
|
||||
*
|
||||
* @return PirepResource
|
||||
*/
|
||||
public function get($pirep_id)
|
||||
public function get($id)
|
||||
{
|
||||
return new PirepResource($this->pirepRepo->find($pirep_id));
|
||||
$pirep = $this->pirepRepo
|
||||
->with(['acars', 'arr_airport', 'dpt_airport', 'comments', 'flight', 'simbrief', 'user'])
|
||||
->find($id);
|
||||
|
||||
return new PirepResource($pirep);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -90,7 +90,7 @@ class UserController extends Controller
|
||||
public function get($id)
|
||||
{
|
||||
$user = $this->userRepo
|
||||
->with(['airline', 'rank'])
|
||||
->with(['airline', 'bids', 'rank'])
|
||||
->find($id);
|
||||
|
||||
return new UserResource($user);
|
||||
|
||||
Reference in New Issue
Block a user