add() public static method

public static add ( App\Source\RouteSystem\Interfaces\IRouteResource $resource )
$resource App\Source\RouteSystem\Interfaces\IRouteResource
Example #1
0
 protected function adminPanelRouteRegister()
 {
     if (Session::has('auth') && Session::get('auth')) {
         AdminRouteCollection::add(new AdminResource('sections'));
         $this->adminPanelMenuRegister();
     }
 }
 public function registerRoute()
 {
     AdminRouteCollection::add(new AdminResource('options', 'App\\Controllers\\Admin\\OptionsController'));
     AdminRouteCollection::add(new AdminResource('group_options'));
 }
Example #3
0
 protected function adminPanelRouteRegister()
 {
     AdminRouteCollection::add(new AdminResource('pages'));
     AdminRouteCollection::add(new AdminResource('users'));
     AdminRouteCollection::add(new AdminResource('groups'));
 }