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

Angel MAS committed
3
  **onestartup/crm-forms** manage forms landings
Francisco Salazar committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# Install Dependencies

- Run this in the terminal

```php
composer require jenssegers/agent
```

- Add the service provider in config/app.php:
```php
Jenssegers\Agent\AgentServiceProvider::class,
``` 

- And add the Agent alias to config/app.php: 
```php
'Agent' => Jenssegers\Agent\Facades\Agent::class,
``` 
Angel MAS committed
21 22 23 24 25 26

# Installation

- Run this in the terminal

```php
Angel MAS committed
27
composer require onestartup/crm-forms
Angel MAS committed
28 29 30 31 32
```

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

```php
Angel MAS committed
33
Onestartup\CrmForms\CrmFormsServiceProvider::class,
Angel MAS committed
34 35 36
```


Francisco Salazar committed
37

Angel MAS committed
38 39 40
- run command for publish views

```php
Angel MAS committed
41
php artisan vendor:publish --provider="Onestartup\CrmForms\CrmFormsServiceProvider"
Angel MAS committed
42 43 44 45 46 47 48
```

- run command for publish config file

```php
php artisan vendor:publish --tag=config 
```
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73

- 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" />
```