Looking to hire Laravel developers? Try LaraJobs

lunit-laravel maintained by lixiyong

Description
A simplified version of the laravel framework unit test
Author
Last update
2019/11/11 00:47 (dev-master)
License
Links
Downloads
8

Comments
comments powered by Disqus

lixiyong-ljunit-laravel

方便与laravel框架中对于某一个类的方法调试;类似于单元测试

框架要求

Laravel >= 5.1

安装

composer require "lixiyong/lunit-laravel"

配置 Laravel 应用

在 config/app.php 注册 ServiceProvider 和 Facade (Laravel 5.5 无需手动注册)

'providers' => [ Lixiyong\LunitLaravel\LunitServiceProvide::class, ]

然后在浏览器中直接访问路由

Route::get('/', 'LunitController@index'); Route::post('/', 'LunitController@store')->name('lunit.store');