Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiagomichaelsousa/LaravelResources
Speed Up package development for Laravel Apps with API's
https://github.com/tiagomichaelsousa/LaravelResources
hacktoberfest laravel laravel-package laravel-resources
Last synced: 3 months ago
JSON representation
Speed Up package development for Laravel Apps with API's
- Host: GitHub
- URL: https://github.com/tiagomichaelsousa/LaravelResources
- Owner: tiagomichaelsousa
- License: other
- Created: 2020-01-29T11:15:58.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T13:47:22.000Z (over 1 year ago)
- Last Synced: 2024-07-18T23:38:20.185Z (4 months ago)
- Topics: hacktoberfest, laravel, laravel-package, laravel-resources
- Language: PHP
- Homepage:
- Size: 1.36 MB
- Stars: 159
- Watchers: 4
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- Contributing: contributing.md
- License: license.md
- Code of conduct: code_of_conduct.md
Awesome Lists containing this project
README
# Laravel Resources
---
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
```bash
$ composer require tiagomichaelsousa/laravelresources --dev
```## Usage
Create the resources
```bash
$ php artisan resources:create
```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
```bash
$ 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](changelog.md) for more information on what has changed recently.
## Testing
```bash
$ composer test
```### With test coverage
```bash
$ composer test-report
```## Contributing
Please see [contributing.md](contributing.md) for details and a todolist.
## Security
If you discover any security related issues, please email the [author](mailto:[email protected]) instead of using the issue tracker.
## Credits
- [@tiagomichaelsousa][link-author]
- [All Contributors][link-contributors]## License
License MIT. Please see the [license file](license.md) for more information.
## Code Of Conduct
Please see the [code of conduct](code_of_conduct.md) for more information.
[ico-version]: https://img.shields.io/packagist/v/tiagomichaelsousa/laravelresources.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/tiagomichaelsousa/laravelresources.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/tiagomichaelsousa/laravelresources/master.svg?style=flat-square
[ico-styleci]: https://github.styleci.io/repos/236964942/shield
[link-packagist]: https://packagist.org/packages/tiagomichaelsousa/laravelresources
[link-downloads]: https://packagist.org/packages/tiagomichaelsousa/laravelresources
[link-travis]: https://travis-ci.org/tiagomichaelsousa/laravelresources
[link-styleci]: https://styleci.io/repos/236964942
[link-author]: https://github.com/tiagomichaelsousa
[link-contributors]: ../../contributors## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Rafael Ferreira
📖
tiagomichaelsousa
💻 📖 🖋 👀
White Hyena
💻 🖋
Keunbae Park
💻 🖋
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!