/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $notes=Note::all(); $notes = Note::paginate(20); return view('notes/list', compact('notes')); }
public function index() { $notes = \App\Note::paginate(6); return view('home', compact('notes')); }
public function index() { $notes = Note::paginate(20); return view('mod.index', compact('notes')); }