README.md 969 Bytes
Newer Older
Angel MAS committed
1 2 3 4 5 6
# Package test OneStartup

  **onestartup/crm** is a module to manipulate the information that arrives through the forms of our project

# Installation

Angel MAS committed
7
- Run this in the terminal
Angel MAS committed
8

Angel MAS committed
9
```
Angel MAS committed
10
	composer require onestartup/crm
Angel MAS committed
11
```
Angel MAS committed
12

Angel MAS committed
13
- after add the ServiceProvider to the providers array in config/app.php
Angel MAS committed
14

Angel MAS committed
15
```
Angel MAS committed
16
	Onestartup\Crm\CrmListServiceProvider::class,
Angel MAS committed
17
```
Angel MAS committed
18

19
- Run migration
Angel MAS committed
20

Angel MAS committed
21
```
Angel MAS committed
22
	php artisan migrate
23
```
Angel MAS committed
24

25
- add next lines to app/User.php
Angel MAS committed
26

Angel MAS committed
27
```
Angel MAS committed
28 29 30 31
	public function tracings()
	{
	    return $this->hasMany('Onestartup\Crm\Tracing', 'user_id');
	}
32
```
Angel MAS committed
33

34
- add next lines to app/Interested.php
Angel MAS committed
35

Angel MAS committed
36
```
Angel MAS committed
37 38 39 40
	public function tracings()
	{
	    return $this->hasMany('Onestartup\Crm\Tracing', 'interested_id');
	}
41
```
Angel MAS committed
42 43 44

- for version 0.0.7 install plugin buttons datatable in base project
```
Angel MAS committed
45
	https://yajrabox.com/docs/laravel-datatables/master/buttons-installation
Angel MAS committed
46 47
```

Angel MAS committed
48 49
- run serv
```php
Angel MAS committed
50
	php artisan serve
Angel MAS committed
51 52
```
- test in this route how admin user
Angel MAS committed
53

Angel MAS committed
54
```php
Angel MAS committed
55
	http://localhost:8000/admin/crm
Angel MAS committed
56
```