filmov
tv
Laravel 10 Tutorial #101 | Product Details Page (I) | Convert HTML to Laravel Blade

Показать описание
In Part 101 of the Laravel 10 Tutorial to make the E-commerce Website in Laravel, we will start working on the product detail page where we will show the details of the product like product name, code and other information.
We will also show the product images and will work on the zoom feature.
We will show the default price of the product that we will change via ajax when we select different sizes of the product.
We will also show the related products on the detail page of the product.
In this video, we are going to convert the html of the product detail page to Laravel blade file and create the route and function for it.
1) Create Route:-
// Product Detail Page
2) Create function:-
Now we will create a detail function in Front/ProductsController that will return to the detail blade file.
We are able to convert the html design of the detail page in our Laravel website.
Replace
with
href="{{ url('product/'.$product['id']) }}"
In the next video, we will start making our detail page dynamic with product details.
Popular Stack Developers Series that can help you:-
►Join this channel to get the complete source code of all series:
Follow Stack Developers on Social Media to get updates and resolve your queries
#laravel10 #laravel10tutorial #laravel
Комментарии