app/Http/Controllers/subsellerController.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::role('subseller')->paginate(5);
        return view('admin.subseller.index', compact('data'))
            ->with('i', ($request->input('page', 1) - 1) * 5);
    }
public function index ( Request $ request ) { $ data = User :: role ( 'subseller' ) -> paginate ( 5 ) ; return view ( 'admin.subseller.index' , compact ( 'data' ) ) -> with ( 'i' , ( $ request -> input ( 'page' , 1 ) - 1 ) * 5 ) ; }
Display a listing of the resource.
Display a listing of the resource .