app/Http/Controllers/UsersController.php
/**
     * Display a listing of the resource.
     *
     * @return Response
     */
Display a listing of the resource.
@return Response
Display a listing of the resource . @return Response
public function index(Request $request)
    {
       $users = User::search($request->name)->orderBy('id', 'DESC')->paginate(5);
        return view('admin.users.index')->with('users', $users);
    }
public function index ( Request $ request ) { $ users = User :: search ( $ request -> name ) -> orderBy ( 'id' , 'DESC' ) -> paginate ( 5 ) ; return view ( 'admin.users.index' ) -> with ( 'users' , $ users ) ; }
Display a listing of the resource.
Display a listing of the resource .