- 添加路由注解基础类 Get、Post、Put、Delete - 实现路由前缀和版本控制注解 Prefix、Version - 添加中间件和路由名称注解 Middleware、Name - 创建路由服务提供者 RouteServiceProvider - 实现控制器目录扫描和路由自动注册 - 添加配置文件支持控制器目录自定义 - 完善单元测试和集成测试用例 - 添加测试控制器和相关测试代码 - 配置 composer 自动加载和 laravel 服务提供者 - 添加 phpunit 测试配置和基础测试用例
21 lines
634 B
PHP
21 lines
634 B
PHP
<?php
|
|
|
|
return [
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Controller Directories
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may specify the list of controller directories that should be scanned
|
|
| for route attributes. By default, it scans the standard Laravel controllers
|
|
| directory.
|
|
|
|
|
*/
|
|
|
|
'controller_directories' => [
|
|
// 注意:在包测试环境中 app_path() 不可用
|
|
// 在真实的 Laravel 应用中,这将是 app_path('Http/Controllers')
|
|
'Http/Controllers',
|
|
],
|
|
];
|