goodechilde / arche
A Laravel package to help you generate APIScaffolding!
dev-master
2021-10-31 21:47 UTC
Requires
- php: ^8.0
- laravel/framework: ^8.65
- spatie/laravel-permission: ^3.13
- spatie/laravel-query-builder: ^3.0
Requires (Dev)
- orchestra/testbench: ^4.0|^5.0
- phpunit/phpunit: ^8.0|^9.0
This package is auto-updated.
Last update: 2025-03-01 00:32:10 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
- Junaid Qadir - This is 100% based on his awesome package Cray
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.