public function byId($id)
 {
     $practicante = Practicante::find($id);
     if (!$practicante) {
         return response()->json(['error' => ['message' => 'Practicante no existe']], 404);
     }
     return response()->json($practicante, 200);
 }
 public function edit($id)
 {
     $practicante = Practicante::find($id);
     return view('admin.practicantes.edit')->with('practicante', $practicante)->with('ranks', Config::get('constants.ranks'))->with('type', Config::get('constants.type'))->with('dojos', Config::get('constants.dojos'))->with('cursos', Config::get('constants.cursos'));
 }
 public function create(Request $request, $id)
 {
     $practicante = Practicante::find($id);
     return view('admin.pagos.pay')->with('practicante', $practicante)->with('dojos', Config::get('constants.dojos'))->with('ranks', Config::get('constants.ranks'))->with('type', Config::get('constants.type'))->with('conceptos', Config::get('constants.conceptos'));
 }