title: How to view the data by id on laravel 5?
body: <p>I have some problem here.
  I wanna view all data sort by "kelompok".</p>
  
  <p>*kelompok means group</p>
  
  <p>This is the code :</p>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>public function pengelompokan()
  {
      $view = DB::table('tb_siswa')-&gt;where('id', $kelompok)-&gt;get();
      return view('pengelompokan')
      -&gt;with('view', $view);
  }
  </code></pre>
  
  <p><strong>Route</strong></p>
  
  <pre><code>Route::get('kelompok', 'belajarController@kelompok');
  </code></pre>