Names
You may now generate URLs for this route using the urlFor()
method, described later in this documentation.The route method is also chainable:
<?php
$app->get('/hello/:name', function ($name) {
})->name('hello')->conditions(array('name' => '\w+'));