Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onestartup-product_resource
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Francisco Salazar
onestartup-product_resource
Commits
9eabfbf3
Commit
9eabfbf3
authored
Jun 25, 2018
by
Pancholin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit readme
parent
30b4afd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+3
-3
No files found.
README.md
View file @
9eabfbf3
# Package products OneStartup
# Package products OneStartup
**onestartup/product**
is a module product for websites
**onestartup/product
_resources
**
is a module product for websites
# Installation
# Installation
...
@@ -25,7 +25,7 @@ php artisan migrate
...
@@ -25,7 +25,7 @@ php artisan migrate
-
add next lines to app/User.php
-
add next lines to app/User.php
```
php
```
php
public
function
products
()
public
function
products
Resource
()
{
{
return
$this
->
hasMany
(
'Onestartup\Product\Model\ProductResource'
,
'user_id'
);
return
$this
->
hasMany
(
'Onestartup\Product\Model\ProductResource'
,
'user_id'
);
}
}
...
@@ -46,7 +46,7 @@ php artisan serve
...
@@ -46,7 +46,7 @@ php artisan serve
-
test in this route how admin user
-
test in this route how admin user
```
php
```
php
http
://
localhost
:
8000
/
admin
/
product
/
product
http
://
localhost
:
8000
/
admin
/
product
_resources
/
products
```
```
-
test in this route
-
test in this route
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment