蒸馏器 / 集成
工具,用于查看应用程序组件的仪表板。
1.2.0
2019-06-12 17:17 UTC
Requires
- php: >=7.1.3
- illuminate/database: ~5.6|~5.7|~5.8
- illuminate/support: ~5.6|~5.7|~5.8
- illuminate/translation: ~5.6|~5.7|~5.8
Requires (Dev)
- fzaninotto/faker: 1.6.*
- mockery/mockery: 0.9.*
- orchestra/database: ~3.6|~3.7|~3.8
- orchestra/testbench: ~3.6|~3.7|~3.8
- orchestra/testbench-browser-kit: ~3.6|~3.7|~3.8
- phpunit/phpunit: 7.1.*
README
集成
集成是一个用于与前端开发者一起工作的包。
目录
安装
在此版本上已设置自动检测包。
在您的 composer.json 中添加
"require": { "distilleries/integration": "1.*", }
运行 composer update
。
将服务提供者添加到 config/app.php
(或自动加载,如果 Laravel >= 5.7)
'providers' => [ // // Package Service Providers... // Distilleries\Integration\IntegrationServiceProvider::class, ]
配置
return [ 'path_partial_component' => resource_path('views/frontend/integration/components/partials'), 'controller' => '\Distilleries\Integration\Http\Controllers\Frontend\IntegrationController@getComponentDetail', 'prefix_uri' => 'integration', 'disabled' => false, 'pages' => [ [ 'name' => 'Page FAQ Example', 'slug' => 'faq', 'status' => 'done', //done,in_progress,todo 'view' => 'integration::frontend.integration.pages.faq', ], ], ];
用法
@component('frontend.components.forms.buttons',transform('Forms\ButtonsTransformer', [ 'type' => 'submit', 'background' => '', 'border' => 'border-enabled', 'text_color' => 'text-grey', 'size' => 'small', ])) @slot('label') EDIT @endslot @endcomponent