app/Http/Controllers/Transaction/TransactionSellerController.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(Transaction $transaction)
    {
        $seller = $transaction->product->user;
        return $this->showOne(new User($seller));
    }
public function index ( Transaction $ transaction ) { $ seller = $ transaction -> product -> user ; return $ this -> showOne ( new User ( $ seller ) ) ; }
Display a listing of the resource.
Display a listing of the resource .