Ejemplo n.º 1
0
 /**
  * Returns the section being visited.
  *
  * @return Illuminate\Database\Eloquent\Model
  */
 protected function getCurrentSection()
 {
     $alias = $this->currentSectionAlias();
     try {
         return $this->sections->findByAlias($alias);
     } catch (ModelNotFoundException $e) {
         App::abort(404);
     }
 }