public function get($id) { $command = Command::with('members')->find($id); if (!$command) { return response()->json(null, 404); } return response()->json($command); }