onestartup / product_resources
catalog of products for websites onestartup
0.0.6
2019-02-06 19:06 UTC
This package is not auto-updated.
Last update: 2025-03-28 01:10:21 UTC
README
onestartup/product_resources is a module product for websites
Installation
- Run this in the terminal
composer require onestartup/product_resources
- after add the ServiceProvider to the providers array in config/app.php
Onestartup\ProductResource\ProductResourceServiceProvider::class
- Run migration
php artisan migrate
- add next lines to app/User.php
public function productsResource()
{
return $this->hasMany('Onestartup\Product\Model\ProductResource', 'user_id');
}
- run command for publish views
php artisan vendor:publish --provider="Onestartup\ProductResource\ProductResourceServiceProvider"
- 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_resources/products
- test in this route
http://localhost:8000/portafolio