Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onestartup-shop-ceramica-gtz
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-shop-ceramica-gtz
Commits
bc3891fa
Commit
bc3891fa
authored
6 years ago
by
Francisco Salazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subcategory function
parent
3f8fe8ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ProductShop.php
src/models/ProductShop.php
+5
-0
No files found.
src/models/ProductShop.php
View file @
bc3891fa
...
...
@@ -39,6 +39,11 @@ class ProductShop extends Model
return
$this
->
belongsTo
(
'Onestartup\Shop\Model\ProductCategoryShop'
,
'category_id'
);
}
public
function
subcategory
()
{
return
$this
->
belongsTo
(
'Onestartup\Shop\Model\ProductSubCategoryShop'
,
'subcategory_id'
);
}
public
function
user
()
{
return
$this
->
belongsTo
(
'App\User'
,
'user_id'
);
...
...
This diff is collapsed.
Click to expand it.
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