#108

Описание к видео #108

In Part-108 of E-com Series, we will start working on CMS Pages. CMS stands for Content Management System and we will add several CMS Pages from admin panel like About Us, Privacy Policy, Terms and Conditions etc. that all we can manage from admin panel itself. We will first create "cms_pages" table, model and controller files first and then work on Add/Edit/Delete CMS Page functionality in admin panel.

1) Create "cms_pages" table :-

We will manually create "cms_pages" table in our database with below columns and data types :-

id (int) (primary) (auto increment)
title (varchar-255)
description (text)
url (varchar-30)
status (tinyint-4)
created_at (datetime)
updated_at (timestamp)

You can also create table with Laravel Migration by following below link :-
   • Part 1: Create table with Migration -...  

2) Create CmsPage model :-
Now create "CmsPage" model with below Laravel Artisan Command :-
php artisan make:model CmsPage

3) Create CmsController :-
Now create "CmsController" file with below Laravel Artisan Command :-
php artisan make:controller CmsController

4) Update admin_sidebar.blade.php :-
Now update admin sidebar with Add/View CMS Pages links as shown in video.

In next video, we will work on Add/View CSM Pages functionality in admin panel.

Thanks for watching :)

Комментарии

Информация по комментариям в разработке