public function index(Request $request) { $practicantes = Practicante::search($request->name)->orderBy('yearbegin')->paginate(10); return view('admin.practicantes.index')->with('practicantes', $practicantes)->with('dojos', Config::get('constants.dojos'))->with('ranks', Config::get('constants.ranks'))->with('type', Config::get('constants.type')); }