public function userSub() { // $data = array( // "userName" => $userName // ); $userName = Input::get('userName'); $text = Input::get('userRec'); $id = Input::get('id'); $status = 0; $user = new UserTwists(); $user->name = $userName; $user->twist = $text; $user->dishId = $id; $user->status = $status; $user->save(); return Redirect::to(URL::previous()); // $insert = InsertComment::save($userName, $text, $id)-> // return View::make('', $data); }
public function test() { $user = new UserTwists(); $user->name = "Alan"; $user->save(); }