app/Http/Controllers/Buyer/BuyerTransactionController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index(User $buyer)
    {
        $transactions = $buyer->transactions;
        return $this->showAll(new TransactionCollection($transactions));
    }
public function index ( User $ buyer ) { $ transactions = $ buyer -> transactions ; return $ this -> showAll ( new TransactionCollection ( $ transactions ) ) ; }
Display a listing of the resource.
Display a listing of the resource .