• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

tiagomichaelsousa/LaravelResources: Speed Up package development for Laravel App ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

tiagomichaelsousa/LaravelResources

开源软件地址(OpenSource Url):

https://github.com/tiagomichaelsousa/LaravelResources

开源编程语言(OpenSource Language):

PHP 100.0%

开源软件介绍(OpenSource Introduction):

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

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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap