Cleanup default value field migrations; flight fields

This commit is contained in:
Nabeel Shahzad
2018-01-23 21:58:13 -06:00
parent 9964eb63fb
commit cd61c999e7
13 changed files with 39 additions and 31 deletions

View File

@@ -22,13 +22,13 @@ class PirepComment extends Resource
$user = $this->user;
return [
'id' => $this->id,
'comment' => $this->comment,
'created_at' => $this->created_at,
'id' => $this->id,
'comment' => $this->comment,
'created_at' => $this->created_at,
'user' => [
'id' => $user->id,
'pilot_id' => $user->pilot_id,
'name' => $user->name,
'id' => $user->id,
'pilot_id' => $user->pilot_id,
'name' => $user->name,
],
];
}