Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onestartup-product
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
Angel Martin
onestartup-product
Commits
52064a13
Commit
52064a13
authored
Jun 21, 2018
by
Angel MAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send category to view
parent
75593d2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
README.md
README.md
+5
-0
ProductController.php
src/controllers/ProductController.php
+1
-0
No files found.
README.md
View file @
52064a13
...
@@ -48,6 +48,11 @@ php artisan serve
...
@@ -48,6 +48,11 @@ php artisan serve
```
php
```
php
http
://
localhost
:
8000
/
admin
/
product
/
product
http
://
localhost
:
8000
/
admin
/
product
/
product
```
```
-
add .env vars
```
php
SLUG_PRODUCTS
=
productos
SLUG_PRODUCTS_CATEGORY
=
categorias
```
-
test in this route
-
test in this route
...
...
src/controllers/ProductController.php
View file @
52064a13
...
@@ -67,6 +67,7 @@ class ProductController extends Controller
...
@@ -67,6 +67,7 @@ class ProductController extends Controller
return
view
(
'product-public::category'
)
return
view
(
'product-public::category'
)
->
with
(
'categories'
,
$categories
)
->
with
(
'categories'
,
$categories
)
->
with
(
'otros'
,
$otros
)
->
with
(
'otros'
,
$otros
)
->
with
(
'category'
,
$category
)
->
with
(
'products'
,
$products
);
->
with
(
'products'
,
$products
);
}
}
...
...
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