Комментарии:
thank you sir
Ответитьto avoid the error on the line
$ productsAll = Product :: where (['category_id' => $ categoryDetails-> id]) -> get ();
they have to send the correct url of the category, look at their DB
for example /products/value_of_url_in the categories table
Sir, I am getting "trying to get property 'id' of non-object" for variable categoryDetails while creating the url part.What should I do?? And my code is same as yours.
Ответитьwell done..
ОтветитьHi sir, Thank you for your tutorial, i have question when i type this code $productsAll=Product::where(['category_id'=>$categoryDetails->id])->get();
not show any result what is the question with this.
I try to get result in different way
$productsAll=Product::where(['category_id'=>$categoryDetails->parent_id])->get();
it's work but show all the t-shirt please help me to get correct answer
Hi, just for me to understand clear, how does variable name $productsAll in productcontroller.php connect to $productAll in indexcontroller.php under two different page (two differen file) ? .... productcontroller.php does not show any indexcontroller.php file so how they connect to each other! please help thanks.
ОтветитьIf i have some products in Main Category, what i gonna do?
ОтветитьYou are great teacher <3 and learn much more thing. Thank you so much. :)
Ответить(Y) good tutorial
Ответитьhow can we add a message for displaying that a category does not have products to be shown?
ОтветитьHello sir, video tutorial is very good but please make video for review and rating product by customer.
ОтветитьNice video but what about pagination and searching??
ОтветитьSo far this tutorial is great and simple to follow, thank you and keep up the good work
ОтветитьIs there any source code link?
Ответить