app/Http/Controllers/UserController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index(Request $request)
    {
        $data = User::orderBy('id', 'desc')->paginate(5);
        return view('users.index', compact('data'));
    }
public function index ( Request $ request ) { $ data = User :: orderBy ( 'id' , 'desc' ) -> paginate ( 5 ) ; return view ( 'users.index' , compact ( 'data' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .