public function showHistoryAction() { $history = History::find(array("order" => "id DESC")); return $this->view->setVars(array('history' => $history))->render('layouts', 'history'); }
/** * History for every account * * @param $id * @return mixed */ public function history($id) { $history = $this->history->find($id); return $this->view('account.history', compact('history', 'id')); }
public function editHistory() { $id = Input::get('id'); $history_entry = History::find($id); $history_entry->ban = Input::get('ban'); $history_entry->save(); return Redirect::to('/history'); }