添加描述到Laravel的路线
我正在使用Laravel 8.83.17。
有没有办法向路线添加其他信息?这样的事情:
Route::get('/home', 'IndexController@index')->name('home')->description('Test');
I am using Laravel 8.83.17.
Is there a way to add an additional information to a route? Something like this:
Route::get('/home', 'IndexController@index')->name('home')->description('Test');
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
框架级别没有这样的选择。
如果您需要为路线提供一些文档,请建议您查看 - https:/https:/ /Github.com/darkaonline/l5-swagger
该软件包无法解决您的问题,至少它为您提供了更好的路线概述。
there is no such option on the Framework level.
In case if you need to have some documentation for your routes, ill recommend you to look at the - https://github.com/DarkaOnLine/L5-Swagger
The package doesnt solve your problem, at least it provide you with a better overview of the routes.