app/Http/Controllers/Product/ProductTransactionController.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(Product $product)
    {
        $transactions = $product->transactions;
        return $this->showAll(new TransactionCollection($transactions));
    }
public function index ( Product $ product ) { $ transactions = $ product -> transactions ; return $ this -> showAll ( new TransactionCollection ( $ transactions ) ) ; }
Display a listing of the resource.
Display a listing of the resource .