/** * Show the form for creating a new resource. * * @return Response */ public function create($oc) { $oc = Oc::whereOc($oc)->get(); $articulos = Articulo::whereOcId($oc[0]->id)->get(); $urgs = Urg::all(array('id', 'urg', 'd_urg')); return view('almacen.entrada.formArticulosOc', compact('oc', 'articulos', 'urgs')); }