/** * Display a listing of the resource. * * @return Response */ public function index() { $notes = Note::all(); return response()->json($notes->toArray()); }