LaravelResources:使用API​​加快Laravel Apps的软件包开发

时间:2024-02-24 06:39:42
【文件属性】:

文件名称:LaravelResources:使用API​​加快Laravel Apps的软件包开发

文件大小:1.36MB

文件格式:ZIP

更新时间:2024-02-24 06:39:42

laravel laravel-package hacktoberfest laravel-resources LaravelPHP

Laravel资源 Laravel Resources是一个加速开发包,允许您使用默认的API结构为Laravel应用创建样板。 版本号 Laravel Laravel资源 7.x v1.7 8.x v2.x 安装 通过作曲家 $ composer require tiagomichaelsousa/laravelresources --dev 用法 创建资源 $ php artisan resources:create < model> 此命令将创建控制器,请求,策略,API资源和集合,还将添加API的默认路由。 发布配置文件 $ php artisan vendor:publish --provider= " tiagomichaelsousa\LaravelResources\LaravelResourcesServiceProvider " --tag= " config " 笔记: 该软件包是完全可配置的。 您可以更改将在配置文件中创建的资源的所有名称空间。 不要忘记编辑请求文件以添加模型的默认验证。 不要忘记编辑策略文件以实现您的应用程序业务逻辑。 变


【文件预览】:
LaravelResources-master
----.github()
--------workflows()
----contributing.md(1KB)
----code_of_conduct.md(537B)
----src()
--------LaravelResourcesServiceProvider.php(1KB)
--------Exceptions()
--------Commands()
--------Generators()
--------Helpers()
--------stubs()
----config()
--------laravel-resources.php(4KB)
----phpunit.xml(677B)
----README.md(6KB)
----.all-contributorsrc(1KB)
----docs()
--------demo.gif(1.44MB)
----.styleci.yml(53B)
----tests()
--------ModelGeneratorTest.php(1KB)
--------SeederGeneratorTest.php(1KB)
--------CollectionGeneratorTest.php(3KB)
--------TestCase.php(2KB)
--------PolicyGeneratorTest.php(3KB)
--------RequestGeneratorTest.php(3KB)
--------ResourceGeneratorTest.php(3KB)
--------ResourceCommandTest.php(3KB)
--------ControllerGeneratorTest.php(3KB)
--------MigrationGeneratorTest.php(2KB)
--------FactoryGeneratorTest.php(2KB)
----license.md(1KB)
----.gitignore(120B)
----composer.json(2KB)
----changelog.md(128B)

网友评论