README.md 809 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
```php
Angel MAS committed
9
composer require onestartup/crm
Angel MAS committed
10 11 12 13 14
```
- after add the ServiceProvider to the providers array in config/app.php
```php
Onestartup\Crm\CrmListServiceProvider::class,
````
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
- Run migration
```php
php artisan migrate
```
- add next lines to app/User.php
```php
public function tracings()
{
    return $this->hasMany('Onestartup\Crm\Tracing', 'user_id');
}
```
- add next lines to app/Interested.php
```php
public function tracings()
{
    return $this->hasMany('Onestartup\Crm\Tracing', 'interested_id');
}
```
Angel MAS committed
33 34 35 36 37 38 39 40
- run serv
```php
php artisan serve
```
- test in this route how admin user
```php
http://localhost:8000/admin/crm
```