/** * Display a listing of the resource. * * @return Response */ public function index() { $total = \App\Difficulty::all()->count(); $rows = \App\Difficulty::paginate(10); $showDelete = false; return view('difficulty.index')->with(compact('rows', 'total', 'showDelete')); }