Created
August 10, 2017 12:18
-
-
Save virdignus/03efbac6a5a79fde622aeb7716b491d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function getUserTransactionsList(User $user) | |
| { | |
| return $user->transactions() | |
| ->get() | |
| ->each(function ($transaction) { | |
| $transaction['grosses'] = $transaction->gross()->value('name'); | |
| $transaction['tags'] = $transaction->tags()->pluck('name'); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment