A Laravel package to help you generate APIScaffolding!

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

This package is auto-updated.

Last update: 2024-04-29 04:21:03 UTC


README

Built based on the great Cray package https://github.com/JunaidQadirB/cray

Installation

composer require goodechilde/arche --dev

Then publish the stubs

php artisan vendor:publish --tag=arche

And install redoc-cli

npm install -g redoc-cli

It will generate stubs to resources/vendor/arche/stubs directory.

Usage

php artisan arche Post

Once done, it will show you the details of the files generated.

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.

Now add the necessary fields and run

php artisan migrate

Changelog

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.