goodechilde / arche

一个Laravel扩展包,帮助您生成API骨架!

dev-master 2021-10-31 21:47 UTC

This package is auto-updated.

Last update: 2024-09-29 05:41:45 UTC


README

基于伟大的Cray包构建:https://github.com/JunaidQadirB/cray

安装

composer require goodechilde/arche --dev

然后发布存根

php artisan vendor:publish --tag=arche

并安装redoc-cli

npm install -g redoc-cli

它将在resources/vendor/arche/stubs目录下生成stubs

使用方法

php artisan arche Post

完成后,它将显示生成的文件详情。

Factory created successfully in /database/factories/PostFactory.php
Seeder created successfully in /database/seeds/PostSeeder.php
Created Migration: 2020_07_30_223044_create_posts_table
Model created successfully in /app/Post.php
Controller created successfully in /app/Http/Controllers/PostController.php
Resource created successfully in /app/Http/Resources/PostResource.php
Service created successfully in /app/Services/PostIndexService.php
Service created successfully in /app/Services/PostStoreService.php
Service created successfully in /app/Services/PostUpdateService.php
Request created successfully in /app/Http/Requests/PostStoreRequest.php
Request created successfully in /app/Http/Requests/PostUpdateRequest.php
Policy created successfully.

现在添加必要的字段并运行

php artisan migrate

变更日志

鸣谢

许可证

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

Laravel包模板

此包是使用Laravel包模板生成的。