/** * Show the form for creating a new resource. * * @return Response */ public function close_round() { // if (Session::has('admin')) { DB::table('rounds')->where('idgame', '=', Input::get('game'))->where('status', '=', 0)->update(array('status' => 1)); $ActionController = new ActionController(); $ActionController->order_actions(); $ActionController->execute_actions(); return Response::json(array('output' => 'closed')); } else { return Response::json(array('output' => 'not admin')); } }