app/Http/Controllers/__Old__/__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('username','ASC')->get();
        return view('users.index',compact('data'));
    }
public function index ( Request $ request ) { $ data = User :: orderBy ( 'username' , 'ASC' ) -> get ( ) ; return view ( 'users.index' , compact ( 'data' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//->with('i', ($request->input('page', 1) - 1) * 20);