subcom/twill-leads
最新稳定版本:v1.0.2
Composer 安装命令:
composer require subcom/twill-leads
包简介
A twill package
README 文档
README
This a package build with laravel and twill to add menu modul.
Support us
Installation
Project setup
twill-leads
To install twill-leads package and all dependecies run the command below and follow the instructions:
composer require subcom/twill-leads
Config setup
- Run command:
php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-leads-views" php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-emails" php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-leads-views-site" php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-success-lang" php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-resources-success-lang" php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-leads-public-assets-admin-leads" php artisan vendor:publish --provider="Leads\LeadsServiceProvider" --tag="twill-leads-database"
- Run command:
php artisan migrate
- Add this to resources/js/app.js
app.component('NewsletterForm', defineAsyncComponent(() => import('./components/NewsletterForm.vue') )); app.component('ContactForm', defineAsyncComponent(() => import('./components/ContactForm.vue') ));
- Add this to config/twill.php in 'directories' => 'source' => 'blocks'
'leads' => [ 'title' => 'Leads', 'icon' => 'quote', 'component' => 'a17-block-leads', 'path' => base_path('vendor/subcom/twill-leads/src/Twill/Capsules/Leads/resources/views/admin/blocks'), 'source' => A17\Twill\Services\Blocks\Block::SOURCE_TWILL, ], 'contactform' => [ 'title' => 'ContactForm', 'icon' => 'quote', 'component' => 'a17-block-contactform', 'path' => base_path('vendor/subcom/twill-leads/src/Twill/Capsules/Leads/resources/views/admin/blocks'), 'source' => A17\Twill\Services\Blocks\Block::SOURCE_TWILL, ],
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 58
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-21