COMMANDS | RESULTS |
---|---|
|
$routes->add('url', 'ControllerName::index'); |
|
$routes->cli('migrate', 'App\Database::migrate'); |
|
$routes->environment('development' , function($routes)
{
$routes->add('builder','Tools\Builder::index');
}); |
|
$routes->get('url', 'ControllerName::index'); |
|
$routes->group('admin', function($routes)
{
$routes->add('url', 'ControllerName::index');
}); |
|
$routes->group('api' , ['filter' => 'api-auth'], function($routes)
{
$routes->resource('url');
}); |
|
$routes->group('admin', function($routes)
{
$routes->group('users', function($routes)
{
//Route
});
}); |
|
$routes->group('api' , ['namespace' => 'App\API\v1'], function($routes)
{
//Route
}); |
|
$routes->post('url', 'ControllerName::index'); |
|
$routes->add('from', 'to', ['subdomain' => '*']); |
COMMANDS | RESULTS |
---|---|
|
$routes->type('url/(:placeholder)', 'ControllerName::index/$1'); Placeholder : any, segment, num, alpha, alphanum, hash |
COMMANDS | RESULTS |
---|---|
|
$routes->addPlaceholder('uuid', '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}');
$routes->type('url/(:uuid)', 'ControllerName::index/$1'); |
COMMANDS | RESULTS |
---|---|
|
$routes->presenter('url'); |
COMMANDS | RESULTS |
---|---|
|
$routes->resource('url'); |