W3cubDocs

/Laravel 8

RouteFileRegistrar

class RouteFileRegistrar (View source)

Properties

protected Router $router The router instance.

Methods

void __construct(Router $router)

Create a new route file registrar instance.

void register(string $routes)

Require the given routes file.

Details

void __construct(Router $router)

Create a new route file registrar instance.

Parameters

Router $router

Return Value

void

void register(string $routes)

Require the given routes file.

Parameters

string $routes

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Routing/RouteFileRegistrar.html