Download the PHP package juststeveking/laravel-api-toolkit without Composer
On this page you can find all versions of the php package juststeveking/laravel-api-toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download juststeveking/laravel-api-toolkit
More information about juststeveking/laravel-api-toolkit
Files in juststeveking/laravel-api-toolkit
Package laravel-api-toolkit
Short Description A toolkit for creating APIs in Laravel
License MIT
Informations about the package laravel-api-toolkit
A toolkit for creating APIs in Laravel
A toolkit for creating APIs in Laravel.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
To get starteed using this, there is only one command you really need to worry about: api-toolkit:resource
.
The only option you need to pass it is the eloquent Model you wish to create and create the APi blueprint for.
The above command will generate:
app/Models/Post.php
app/Policies/PostPolicy.php
- Class name can be altered in configapp/Http/Resources/PostResource.php
- Class name can be altered in configapp/Http/Requests/Api/Post/CreateRequest.php
- Class name can be altered in configapp/Http/Requests/Api/Post/UpdateRequest.php
- Class name can be altered in configapp/Http/Controllers/Post/IndexController.php
- Class name can be altered in configapp/Http/Controllers/Post/CreateController.php
- Class name can be altered in configapp/Http/Controllers/Post/ShowController.php
- Class name can be altered in configapp/Http/Controllers/Post/UpdateController.php
- Class name can be altered in configapp/Http/Controllers/Post/DeleteController.php
- Class name can be altered in configdatabase/seeds/PostSeeder.php
- Class name can be altered in configdatabase/factories/PostFactory.php
database/migrations/xxxx_xx_xx_xxxxxx_create_posts_table.php
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Steve McDougall
- All Contributors
License
The MIT License (MIT). Please see License File for more information.