Laravel >= 5.1 & PHP >= 7.1.3
composer require "qiuqiu1999/junit-laravel"
在config/app.php中进行服务注册
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/
'providers' => [
... ,
QiuQiu1999\JunitLaravel\Providers\JunitServiceProvider::class
],
Route::get('/', 'JunitController@index'); // 测试主页
Route::post('/', 'JunitController@store')->name('junit.store'); // 提交
MIT