nikic / FastRoute

Fast request router for PHP
Other
5.13k stars 445 forks source link

It is recommended to refer to laravel and add route name #233

Closed andy236726493 closed 3 years ago

andy236726493 commented 3 years ago

It is recommended to refer to laravel and add route name

for example: Router::get('/hello-hyperf', function () { return 'Hello Hyperf.'; })->name("hello-hyperf);

lcobucci commented 3 years ago

@andy236726493 sorry but this is not Laravel and that syntax isn't applicable here. Closing as invalid 👍