onestartup / product-primerplano
catalog of products for websites onestartup
0.0.8
2018-11-24 00:20 UTC
This package is not auto-updated.
Last update: 2025-03-23 06:37:55 UTC
README
onestartup/product is a module product for websites
Installation
- Run this in the terminal
composer require onestartup/product
- after add the ServiceProvider to the providers array in config/app.php
Onestartup\Product\ProductServiceProvider::class,
- Run migration
php artisan migrate
- add next lines to app/User.php
public function products()
{
return $this->hasMany('Onestartup\Product\Model\Product', 'user_id');
}
- run command for publish views
php artisan vendor:publish --provider="Onestartup\Product\ProductServiceProvider"
- run command for publish config file
php artisan vendor:publish --tag=config
- run serv
php artisan serve
- test in this route how admin user
http://localhost:8000/admin/product/product
add .env vars
SLUG_PRODUCTS=productos SLUG_PRODUCTS_CATEGORY=categorias
test in this route
http://localhost:8000/portafolio