onestartup/crm-forms
Composer 安装命令:
composer require onestartup/crm-forms
包简介
manage forms landings
README 文档
README
onestartup/crm-forms manage forms landings
Install Dependencies
- Run this in the terminal
composer require jenssegers/agent
- Add the service provider in config/app.php:
Jenssegers\Agent\AgentServiceProvider::class,
- And add the Agent alias to config/app.php:
'Agent' => Jenssegers\Agent\Facades\Agent::class,
Installation
- Run this in the terminal
composer require onestartup/crm-forms
- after add the ServiceProvider to the providers array in config/app.php
Onestartup\CrmForms\CrmFormsServiceProvider::class,
- run migrations
php artisan migrate
- run command for publish views
php artisan vendor:publish --provider="Onestartup\CrmForms\CrmFormsServiceProvider"
- run command for publish config file
php artisan vendor:publish --tag=config
- run command for publish assets
php artisan vendor:publish --tag=public
- add next lines to app/Interested.php
public function interested_detail(){
return $this->hasOne('Onestartup\CrmForms\Model\InterestedDetail', 'interested_id');
}
- include form in your landing page
@include('crmforms-public::forms.form_base')
-include scripts in your landing page
<script type="text/javascript" src="{{asset('assets/cronometro2.js')}}"></script>
统计信息
- 总下载量: 396
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2018-08-29