/** * getCreate * * @return mixed */ public function getCreate() { $troubles = Trouble::all(); // Show the page. // return View::make('ticket/create')->with('troubles', $troubles); }
/** * Main users page. * * @access public * @return View */ public function getIndex() { $troubles = Trouble::all(); // Show the page. // return View::make('account/index', array('user' => Auth::user(), 'troubles' => $troubles)); }
public function resolve(Trouble $trouble) { return $trouble->getNumber() === $this->specialNumber ? true : false; }
/** * @param Trouble $trouble * @return bool */ protected function resolve(Trouble $trouble) { return $trouble->getNumber() === $this->number; }
/** * @param Trouble $trouble * @return bool */ protected function resolve(Trouble $trouble) { return $trouble->getNumber() < $this->limit; }
/** * @param Trouble $trouble * @return bool */ protected function resolve(Trouble $trouble) { return $trouble->getNumber() % 2 === 1; }