iamx / api-crud-generator
Make an easy HATEOAS Api
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/iamx/api-crud-generator
Requires
- php: ^5.5 || ^7.0
- spatie/laravel-fractal: ^5.7
This package is auto-updated.
Last update: 2025-10-05 09:06:59 UTC
README
Installation
$ composer require iamx/api-crud-generator
Database
Set your database properties in .env file
Create a new Api CRUD
$ php artisan make:crud Test
Now you can edit
Folder | File |
---|---|
app | Test.php |
app/Transformers | TestTransformer.php |
app/Http/Controller/Api/Test | TestController.php |
app/Http/Requests | TestRequest.php |
app/database/migrations | 2014_10_12_000000_create_tests_table.php |
Migrate
$ php artisan migrate
Then you can see the routes in routes/api.php file
Start the server and go to 127.0.0.1:8000/api/tests
License
MIT