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

Routing

Illuminate\Routing Namespaces Illuminate\Routing\ConsoleIlluminate\Routing\GeneratorsIlluminate\Routing\Matching Classes Controller ControllerDispatcher ControllerInspector ControllerServiceProvider Redirector Route RouteCollection Router RoutingServiceProvider UrlGenerator

RoutesNotifications

RoutesNotifications trait RoutesNotifications (View source) Methods void notify(mixed $instance) Send the given notification. mixed routeNotificationFor(string $driver) Get the notification routing information for the given driver.

RoutesNotifications::notify()

void notify(mixed $instance) Send the given notification. Parameters mixed $instance Return Value void

RoutesNotifications::routeNotificationFor()

mixed routeNotificationFor(string $driver) Get the notification routing information for the given driver. Parameters string $driver Return Value mixed

RouteServiceProvider::when()

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

RouteServiceProvider::provides()

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

RouteServiceProvider::register()

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

RouteServiceProvider::__construct()

void __construct(Application $app) Create a new service provider instance. Parameters Application $app Return Value void

RouteServiceProvider::__call()

mixed __call(string $method, array $parameters) Pass dynamic methods onto the router instance. Parameters string $method array $parameters Return Value mixed