xiaobei / demo-laravel

Package description here.

Stars
0

xiaobei-demo-laravel

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

框架要求

Laravel >= 5.1

安装

composer require "xiaobei/demo-laravel"

配置

Laravel 应用

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

'providers' => [
    // ...
    xiaobei\demo-laravel\DemoServiceProvide::class,
]

然后在浏览器中访问的路由如下

Route::get('/demo', '[email protected]');
Route::post('/demo', '[email protected]')->name('demo.store');