New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

tiagomichaelsousa/laravelresources

Laravel Resources is a speed-up development package that allows you to create a boilerplate for Laravel apps with a default API structure.
13,563 155
Install
composer require tiagomichaelsousa/laravelresources
Latest Version:v3.0.0
Laravel:7 – 10
Older releases:5 · 6
License:MIT
Last Updated:May 6, 2023
Links: GitHub  ·  Packagist
Maintainer: tiagomichaelsousa

Laravel Resources

Laravel Resources Demo

Packagist Version Packagist Downloads Build Status Style Status Licence All Contributors Code Quality Code Coverage


Laravel Resources is a speed-up development package that allows you to create a boilerplate for Laravel apps with a default API structure.

Versions

Laravel Laravel Resources
7.x v1.7
8.x v2.x
9.x v2.x
10.x v3.x

Installation

Via Composer

$ composer require tiagomichaelsousa/laravelresources --dev

Usage

Create the resources

$ php artisan resources:create <model>

This command will create the Controller, the Request, the Policy, the API Resource and Collection and will also add the default routes for the API.

Publish configuration file

$ php artisan vendor:publish --provider="tiagomichaelsousa\LaravelResources\LaravelResourcesServiceProvider" --tag="config"

Notes:

  • This package is fully configurable. You can change all the namespaces for the resources that will be created in the config file.
  • Don't forget to edit the request file in order to add your default validation for the model.
  • Don't forget to edit the policy file in order to fulfill your app business logic.

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

With test coverage

$ composer test-report

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email the author instead of using the issue tracker.

Credits

License

License MIT. Please see the license file for more information.

Code Of Conduct

Please see the code of conduct for more information.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Rafael Ferreira

📖

tiagomichaelsousa

💻 📖 🖋 👀

White Hyena

💻 🖋

Keunbae Park

💻 🖋

This project follows the all-contributors specification. Contributions of any kind welcome!

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released Laravel License
v3.0.0 ^7.0|^8.0|^9.0|^10.0 MIT
v2.0.1 ^7.0|^8.0|^9.0 MIT
v2.0 ^7.0|^8.0 MIT
v1.8 ^7.0|^8.0 MIT
v1.7 ^7.0 MIT