apiautopilot/apiautopilot

这是我的包 apiautopilot

1.0.0 2022-12-03 03:50 UTC

This package is auto-updated.

Last update: 2024-09-25 04:15:36 UTC


README

Latest Version on Packagist Total Downloads

Api Auto Pilot 是一个 laravel 包,使得创建 laravel RESTful API 的过程变得轻松简单!

安装

您可以通过 composer 安装此包

composer require apiautopilot/apiautopilot

在从 packagist 需求包之后,请确保运行安装命令

php artisan apiautopilot:install

您可以使用以下命令发布配置文件

php artisan vendor:publish --tag="apiautopilot-config"

这是发布配置文件的内容

<?php

return [
    'index' => [
        'exclude' => [

        ],
    ],
    'show' => [
        'exclude' => [

        ],
    ],
    'create' => [
        'exclude' => [

        ],
    ],
    'update' => [
        'exclude' => [

        ],
    ],
    'delete' => [
        'exclude' => [

        ],
    ],
    'attach' => [
        'exclude' => [

        ],
    ],
    'detach' => [
        'exclude' => [

        ],
    ],
    'sync' => [
        'exclude' => [

        ],
    ],

    'settings' => [

    ],
];

测试

composer test

致谢

许可证

MIT 许可证 (MIT)。请参阅许可证文件获取更多信息。