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

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.