/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return response()->json(User::orderBy('achternaam')->orderBy('voornaam')->get()); }