예제 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return view('kelas.index', ['kelass' => Kelas::paginate(10)]);
 }
예제 #2
0
 public function index()
 {
     $kelas = Kelas::paginate(10);
     $kelas->setPath('');
     return View('kelas.index')->with('kelas', $kelas);
 }