Example #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Request $request)
 {
     $unidade = new Unidade();
     $unidade->unidade = Request::get('unidade');
     $unidade->save();
     $parametro = new Parametro();
     $parametro->parametro = Request::get('parametro');
     $parametro->LimitePortaria = Request::get('LimitePortaria');
     $parametro->fk_portaria = 4;
     $parametro->fk_idunidade = $unidade->id;
     $parametro->save();
     return view('parametro.cadastra-parametro');
 }
Example #2
0
 public function create($id)
 {
     $v['nome'] = $this->cliente->find($id);
     $nome = $v['nome']->idcliente;
     if (CRYPT_STD_DES == 1) {
         $v['hash'] = crypt($nome, 'ec');
     }
     //$v['id']=$this->Cliente->where('parent',$id)->get();
     $v['parametro'] = Parametro::all();
     // $v['unidade']=array('uni','uni','uni');
     return view('analise.create', $v);
     //return view('produtos.index',['produtos'=>$produtos]);
 }