Пример #1
0
 /**
  * Get after filters
  *
  * @param  Route $route
  * @return string
  */
 protected function getAfterFilters($route)
 {
     return implode(', ', $route->getAfterFilters());
 }
Пример #2
0
 /**
  * Merge a groups filters onto a route.
  * 
  * @param  \Illuminate\Routing\Route  $route
  * @param  \JasonLewis\EnhancedRouter\RouteGroup  $group
  * @return void
  */
 protected function mergeGroupFilters($route, $group)
 {
     $before = array_unique(array_merge($route->getBeforeFilters(), $group->getBeforeFilters()));
     $route->setOption('_before', $before);
     $after = array_unique(array_merge($route->getAfterFilters(), $group->getAfterFilters()));
     $route->setOption('_after', $after);
 }