Commit 66ddb7c4 by Angel MAS

updated readme

parent d5111e28
# Package products OneStartup
**onestartup/product** is a module product for websites
**onestartup/crm-forms** manage forms landings
# Installation
- Run this in the terminal
```php
composer require onestartup/product
composer require onestartup/crm-forms
```
- after add the ServiceProvider to the providers array in config/app.php
```php
Onestartup\Product\ProductServiceProvider::class,
Onestartup\CrmForms\CrmFormsServiceProvider::class,
```
- Run migration
```php
php artisan migrate
```
- add next lines to app/User.php
```php
public function products()
{
return $this->hasMany('Onestartup\Product\Model\Product', 'user_id');
}
```
- run command for publish views
```php
php artisan vendor:publish --provider="Onestartup\Product\ProductServiceProvider"
php artisan vendor:publish --provider="Onestartup\CrmForms\CrmFormsServiceProvider"
```
- run command for publish config file
......@@ -42,26 +28,3 @@ php artisan vendor:publish --provider="Onestartup\Product\ProductServiceProvider
```php
php artisan vendor:publish --tag=config
```
- run serv
```php
php artisan serve
```
- test in this route how admin user
```php
http://localhost:8000/admin/product/product
```
- add .env vars
```php
SLUG_PRODUCTS=productos
SLUG_PRODUCTS_CATEGORY=categorias
```
- test in this route
```php
http://localhost:8000/portafolio
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment