Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public function atualizarhorario(){
  2.  
  3. $id = Request::input('IdHorario');
  4. $editar = Horarios::find($id);
  5. $editar ->Titulo = Request::input('Titulo') ;
  6. $editar ->Professor = Request::input('Professor');
  7. $editar ->sala = Request::input('Sala');
  8. $editar ->save();
  9.  
  10. return redirect()->action('kairosController@editarhorario', $id);
  11.  
  12. <input type="hidden" value="{{$editar -> IdHorario}}" name="IdHorario"/>
  13. <input type="hidden" name="_token" value="{{{csrf_token()}}}"/>
  14. //Resto do código omitido
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement