Closed jamespavett closed 4 years ago
Hello @jamespavett ,
For named routes, you need to declare the need before the method, like this :
$router->name('home')->get('/', function () {
return 'hello world!';
});
For redirect function, you can use :
$router->get('/menu',function () {
return new RedirectResponse('/');
});
Hi,
Are there any plans for an upgrade to 7.0?
Following the process for Routing, I have been able to set everything up working with 6.0 just fine. However when I used 7.0, the only error I see to have it when I pass a redirect to the UrlGenerator:
Any thoughts would be greatly appreciated.