onestartup / crm-forms
manage forms landings
0.0.11
2019-02-08 18:41 UTC
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>