/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $team = new Team(); $list_teams = Team::paginate(config('custom.default_record_per_page')); return view('admin.team.index', compact('list_teams', 'team')); }