public function allTransactions(int $id)
    {
        /** @var HasTransactionsInterface $object */
        if(!$object = $this->repository->find($id)) {
            abort(404);
        }

        $transactions = $object->getLatestTransactions();

        return TransactionResource::collection($transactions);
    }