app/Http/Controllers/visitasController.php
/**
  * Store do cadastro dos visitantes.
  *
  * @return Response
  
  */
Store do cadastro dos visitantes.
@return Response
Store do cadastro dos visitantes . @return Response
public function store(Request $request)
 {
   $visita= new \App\visita;
   $visita->id=$request->get('id');
   $visita->nomeVisitante=$request->get('nomeVisitante');
   $visita->tipoDocumento=$request->get('tipoDocumento');
   $visita->nrDoc=$request->get('nrDoc');
   $visita->bday=$request->get('bday');
   $visita->local=$request->get('local');
   $visita->assunto=$request->get('assunto');
   $visita->save();
      return redirect('regVisitas')->with('success', 'Information has been added');
 }
public function store ( Request $ request ) { $ visita = new \ App \ visita ; $ visita -> id = $ request -> get ( 'id' ) ; $ visita -> nomeVisitante = $ request -> get ( 'nomeVisitante' ) ; $ visita -> tipoDocumento = $ request -> get ( 'tipoDocumento' ) ; $ visita -> nrDoc = $ request -> get ( 'nrDoc' ) ; $ visita -> bday = $ request -> get ( 'bday' ) ; $ visita -> local = $ request -> get ( 'local' ) ; $ visita -> assunto = $ request -> get ( 'assunto' ) ; $ visita -> save ( ) ; return redirect ( 'regVisitas' ) -> with ( 'success' , 'Information has been added' ) ; }
Store do cadastro dos visitantes.
Store do cadastro dos visitantes .