Ejemplo n.º 1
0
 public function showHistoryAction()
 {
     $history = History::find(array("order" => "id DESC"));
     return $this->view->setVars(array('history' => $history))->render('layouts', 'history');
 }
Ejemplo n.º 2
0
 /**
  * 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'));
 }
Ejemplo n.º 3
-2
 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');
 }