Skip to content

Commit

Permalink
add userAssignment's has many relations
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Jan 8, 2018
1 parent 51f8f07 commit c837979
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Models/UserAssignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ protected function getExternalRelations()
return ['user'];
}

/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function expenses()
{
return $this->hasMany(Expense::class);
}

/**
* @return mixed
*/
Expand Down

0 comments on commit c837979

Please sign in to comment.