route
Short function for
Route::set()
andRoute::get()
.
route(...$lot);
Example:
// Set `foo/:id` route
route('foo/:id', function() { … });
// Get routes
$routes = route();
// Get `foo/:id` route
$route = route('foo/:id');
Helper functions.
route
Short function for
Route::set()
andRoute::get()
.
route(...$lot);
Example:
// Set `foo/:id` route
route('foo/:id', function() { … });
// Get routes
$routes = route();
// Get `foo/:id` route
$route = route('foo/:id');