beautycoding/apiutils

1.4.1 2016-03-31 11:31 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:04:23 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

为了安装 Laravel 5 ApiUtils,只需在您的 composer.json 中添加

"beautycoding/apiutils": "dev-master"

然后运行 composer installcomposer update

或者在终端中输入

composer require beautycoding/apiutils

然后在您的 config/app.php 中添加

    BeautyCoding\ApiUtils\Providers\ApiUtilsServiceProvider::class,

发布配置

    php artisan vendor:publish

编辑配置文件 config/apiutils.php 以设置默认响应类型。您可以编写并设置自己的类