Exemplo n.º 1
0
 /**
  * @param $id
  * @return \View
  */
 public function show($id)
 {
     try {
         $log = $this->logRepo->findById($id);
         $last = null;
     } catch (ModelNotFoundException $e) {
         $log = null;
         $last = (int) $id - 1;
     }
     return \View::make('connector::log.show', ['log' => $log, 'last' => $last]);
 }