README.md 1023 Bytes
Newer Older
Angel MAS committed
1
# Package crm-forms OneStartup
Angel MAS committed
2

Angel MAS committed
3
  **onestartup/crm-forms** manage forms landings
Angel MAS committed
4 5 6 7 8 9

# Installation

- Run this in the terminal

```php
Angel MAS committed
10
composer require onestartup/crm-forms
Angel MAS committed
11 12 13 14 15
```

- after add the ServiceProvider to the providers array in config/app.php

```php
Angel MAS committed
16
Onestartup\CrmForms\CrmFormsServiceProvider::class,
Angel MAS committed
17 18 19 20 21 22
```


- run command for publish views

```php
Angel MAS committed
23
php artisan vendor:publish --provider="Onestartup\CrmForms\CrmFormsServiceProvider"
Angel MAS committed
24 25 26 27 28 29 30
```

- run command for publish config file

```php
php artisan vendor:publish --tag=config 
```
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55

- run command for publish assets
```php
php artisan vendor:publish --tag=public
```


- add next lines to app/Interested.php

```php
public function interested_detail(){
    	return $this->hasOne('Onestartup\CrmForms\Model\InterestedDetail', 'interested_id');
    }
```

- include form in your landing page

```php
@include('crmforms-public::forms.form_base')
```

-include scripts in your landing page
```php
<script src="{{asset('assets/cronometro.js')}}" type="text/javascript" />
```