示例#1
0
文件: Reunion.php 项目: J3S/Meetme
 public static function crearReunion($reunion_Objeto)
 {
     $reunion = new Reunion();
     $reunion->titulo = $reunion_Objeto->event_title;
     $reunion->objetivo = $reunion_Objeto->event_objective;
     $reunion->descripcion = $reunion_Objeto->event_description;
     $time = strtotime($reunion_Objeto->event_date);
     $date_meeting = date('Y-m-d', $time);
     $reunion->fecha = $date_meeting;
     //Cambiar esto cuando se maneje sesiones
     $reunion->idUsuarioCreador = 1;
     //Cambiar esto cuando se maneje sesiones
     $reunion->sugerencia = $reunion_Objeto->event_suggestion;
     $reunion->save();
 }
示例#2
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     Reunion::crearReunion($request);
     return redirect('new_event');
 }