PHP Class Encore\Admin\Routing\Router

Mostrar archivo Open project: z-song/laravel-admin

Protected Properties

Property Type Description
$attributes array Admin routes group attributes.
$router Illuminate\Routing\Router Laravel Router.
$routes array All admin routes.

Public Methods

Method Description
__call ( string $method, array $arguments ) Dynamically add routes to admin router.
__construct ( Router $router ) Create a new admin router instance.
register ( ) : void Register admin routes.

Protected Methods

Method Description
prepareAttributes ( ) : void Prepare admin route group attributes.
setAdminRoutes ( ) : void Set auth route.

Method Details

__call() public method

Dynamically add routes to admin router.
public __call ( string $method, array $arguments )
$method string
$arguments array

__construct() public method

Create a new admin router instance.
public __construct ( Router $router )
$router Illuminate\Routing\Router

prepareAttributes() protected method

Prepare admin route group attributes.
protected prepareAttributes ( ) : void
return void

register() public method

Register admin routes.
public register ( ) : void
return void

setAdminRoutes() protected method

Set auth route.
protected setAdminRoutes ( ) : void
return void

Property Details

$attributes protected_oe property

Admin routes group attributes.
protected array $attributes
return array

$router protected_oe property

Laravel Router.
protected Router,Illuminate\Routing $router
return Illuminate\Routing\Router

$routes protected_oe property

All admin routes.
protected array $routes
return array