Ejemplo n.º 1
0
 public function create(Request $request)
 {
     $name = $request->room_name;
     $created_at = Carbon::now();
     $query = ['name' => $name, 'created_at' => $created_at];
     Room::insert($query);
     return redirect('home');
 }