#111 Make E-com Website in Laravel 5.6 / 5.7 | Work on Admin Panel | Update/Delete CMS Pages

preview_player
Показать описание
In Part-111 of E-com Series, we will continue working on CMS Pages and this time we will work on Update and Delete CMS Page functionality in admin panel.

1) Create Route :-
// Edit CMS Page

2) Create editCmsPage function :-

4) Update editCmsPage function :-
Now update editCmsPage function to add condition in post method to update the data in cms page and return with success message as shown in video.

Now check in video, we able to update CMS Pages. Now we will also delete CMS Page by taking below steps :-

5) Create Route :-

// Delete CMS Route

6) Create deleteCmsPage function :-
Now create deleteCmsPage function and add query to delete CMS Page with id and return to view cms pages as shown in video.

Now you can see, we able to do both Update and Delete CMS Page functionality.

In next video, we will create some of the CMS Page and add functionality to display at frontend.

Thanks for watching :)
Рекомендации по теме
Комментарии
Автор

Woah... I really liked your tutorials. Very nice. Keep it up. You earned my like and subscribe. :)

surojmaharjan
Автор

Please complete the code above on github

sumercoding
Автор

Hello sir can l buy a e-commerce course

statuslover-zhtk