api-tester
api-tester copied to clipboard
API tester for laravel-admin
Since Laravel 6+ all `array_` helpers have been moved to the new `laravel/helpers`. Use Illuminate\Support\Arr::get() instead of array_get() Issue: #15
At lines 33, 34, 42 of src/ApiTesterCotroller.php and 268 of src/ApiTester.php function array_get is used. It breaks in any versions of Laravel newer than 6.0. It's fixed by replacing it...
兼容
- Can only install one of: encore/laravel-admin[1.5.x-dev, v1.7.9]. - Can only install one of: encore/laravel-admin[v1.7.9, 1.5.x-dev]. - Can only install one of: encore/laravel-admin[1.5.x-dev, v1.7.9]. - Conclusion: install encore/laravel-admin 1.5.x-dev
我在路由中定义了一个 options 的路由 ,在打开 api-test 模块后报错 Undefined index: OPTIONS **vendor/laravel-admin-ext/api-tester/src/ApiTester.php** ``` public static $methodColors = [ 'GET' => 'green', 'HEAD' => 'gray', 'POST' => 'blue', 'PUT' => 'yellow', 'DELETE' =>...
config里 `'user_retriever' => function ($id) { return \App\User::find($id); }` php artisan config:cache 会报错,config里不能用closure。 然后API auth driver 用的是passport,没有retrieveById 函数
It is not allowed to use `Closure` in cache files in **PHP**. To work with that, we can instead specify the class name of the `ApiTester`
希望 config 中增加上传文件开关、Login as 开关,使 api-tester 权限更可控扩展使用范围。十分感谢!
Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException No message
api/user InvalidArgumentException Route [login] not defined. protected function methodNotAllowed(array $others) { throw new MethodNotAllowedHttpException($others); }