app/Http/Controllers/Admin/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()
    {
        $users = User::orderBy('name', 'asc')->paginate(10);
        return view('admin.user.index', compact('users'));
    }
public function index ( ) { $ users = User :: orderBy ( 'name' , 'asc' ) -> paginate ( 10 ) ; return view ( 'admin.user.index' , compact ( 'users' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .