Giter Club home page Giter Club logo

laravelresources's Introduction

Laravel Resources

Laravel Resources Demo

Packagist Version Packagist Downloads Build Status Style Status Licence All Contributors


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

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

๐Ÿ’ป ๐Ÿ“– ๐Ÿ–‹ ๐Ÿ‘€

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

laravelresources's People

Contributors

allcontributors[bot] avatar rafaelferreiratvd avatar tiagomichaelsousa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.