Routing\Console

Illuminate\Routing\Console Classes MakeControllerCommand

RoutingServiceProvider::register()

void register() Register the service provider. Return Value void

RoutingServiceProvider::__call()

mixed __call(string $method, array $parameters) Dynamically handle missing method calls. Parameters string $method array $parameters Return Value mixed

RoutingServiceProvider::when()

array when() Get the events that trigger this service provider to register. Return Value array

RoutingServiceProvider::commands()

void commands(array|mixed $commands) Register the package's custom Artisan commands. Parameters array|mixed $commands Return Value void

RoutingServiceProvider::provides()

array provides() Get the services provided by the provider. Return Value array

RoutingServiceProvider::pathsToPublish()

static array pathsToPublish(string $provider = null, string $group = null) Get the paths to publish. Parameters string $provider string $group Return Value array

RoutingServiceProvider::compiles()

static array compiles() Get a list of files that should be compiled for the package. Return Value array

RoutingServiceProvider::isDeferred()

bool isDeferred() Determine if the provider is deferred. Return Value bool

Routing

Routing Basic Routing Route Parameters Required Parameters Optional Parameters Named Routes Route Groups Middleware Namespaces Sub-Domain Routing Route Prefixes Route Model Binding Implicit Binding Explicit Binding Form Method Spoofing Accessing The Current Route Basic Routing The most basic Laravel routes simply accept a URI and a Closure, providing a very simple and expressive method of defining routes: Route::get('foo', function () { return 'Hello World'; }); The Default Route Fi