rumus-bin/laravel-routes-attributes 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rumus-bin/laravel-routes-attributes

Composer 安装命令:

composer require rumus-bin/laravel-routes-attributes

包简介

Laravel attributes route

README 文档

README

The package requires a minimum version of PHP 8.

This package was inspired by the work of the Spatie team, namely their package: laravel-route-attributes Please use the above package for your production environments.

License

MIT

Responsibility:

The author of the package does not bear any responsibility for possible losses associated with the use of this package in a production environment. The author also does not accept any comments about the performance or inoperability of this package. You can freely use all the program code of this package for your own purposes, but only under your own responsibility. Support, security and updating of this package is not guaranteed in any way by the author.

After install publish config with artisan command:

php artisan vendor:publish --provider="RumusBin\AttributesRouter\AttributesRouterProvider" --tag="config" this will publish config class: return [ /* * Automatic registration of routes will only happen if this setting istrue` */ 'enabled' => true,

/*
 * Controllers in these directories that have routing attributes
 * will automatically be registered.
 *
 * Optionally, you can specify group configuration by using key/values
 */
'directories' => [
    app_path('Http/Controllers'),

    app_path('Http/Controllers/Web') => [
        'middleware' => ['web']
    ],
    
    app_path('Http/Controllers/Api') => [
        'prefix' => 'api',
        'middleware' => 'api'
    ],
],

]; `

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-29