inmanturbo / path-router
这是我开发的包 path-router
v1.0.3
2024-01-24 20:32 UTC
Requires
- php: ^8.1
- illuminate/contracts: *
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.8
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is auto-updated.
Last update: 2024-09-24 20:33:24 UTC
README
安装
您可以通过 composer 安装此包
composer require inmanturbo/path-router
php artisan vendor:publish --tag="path-router-config"
这是已发布配置文件的内容
return [ 'active' => env('PATH_ROUTER_ACTIVE', true), 'routes' => [ [ 'route_prefix' => 'view', 'active' => env('PATH_ROUTER_ACTIVE', true), 'root_dir' => 'www', 'middleware' => [ // 'web', // 'auth', ], 'headers' => [ 'pdf' => [ 'Content-Type' => 'application/pdf', ], ], 'handler' => new \Inmanturbo\PathRouter\Handlers\PathBasedViewResponseHandler, ], ], ];
测试
composer test
变更日志
有关最近变更的更多信息,请参阅变更日志。
贡献
有关详细信息,请参阅贡献指南。
安全漏洞
请查看我们的安全策略,了解如何报告安全漏洞。
鸣谢
许可证
MIT 许可证(MIT)。有关更多信息,请参阅许可证文件。