onestartup/product

catalog of products for websites onestartup

0.1.7 2019-04-09 00:32 UTC

This package is not auto-updated.

Last update: 2024-05-15 00:27:52 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