title: Select from mysql table through variable Laravel
body: <p><a href="https://i.stack.imgur.com/gkfev.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gkfev.png" alt="Here uniname is the main data" /></a></p>
  <p>I want to select those <code>uniname</code> with same <code>seller_id</code>.There can be multiple <code>uniname</code> with same seller id. I am getting the seller_id info from html, where <em>seller_id</em> is passed as <em>id</em>. How to call it through controller for printing. The line I used is,</p>
  <pre class="lang-php prettyprint-override"><code>$university = DB::table('universities')-&gt;where('seller_id', '$id');
  </code></pre>
  <pre class="lang-php prettyprint-override"><code>public function manage_seller_profile($id)
  {
      $divisions = Division::orderBy('id','asc')-&gt;get();
      $districts = District::orderBy('id','asc')-&gt;get();
      $seller_profile = Seller_info::find($id);
      $university = DB::table('universities')-&gt;where('seller_id', '$id');
      
      return view('Backend.pages.seller.manage_seller_profile', compact('seller_profile', 'districts', 'divisions', 'university'));
  }
  </code></pre>