►Laravel 10 Tutorial Playlist: • Laravel 10 Tutorial: Make Admin Panel...
In Part-37 of the Laravel 10 Tutorial, we will continue working on the Categories module. We will start the "Add/Edit Category" functionality and in this video, we will add Add/Edit Category page and its form.
1) Update categories.blade.php file :-
First of all, we will show "Add Category" link at top right side of the categories page in admin panel.
2) Create Route :-
Create GET/POST route for Add/Edit Category in web.php file under admin group with id parameter as optional (that is required in case of edit category) like below :-
Route::match(['get','post'],'add-edit-category/{id?}','CategoryController@addEditCategory');
3) Create addEditCategory function :-
Create addEditCategory function in CategoryController with parameter $id as optional. We will add condition to execute "Add Category" functionality in case $id is empty otherwise "Edit Category" functionality if $id is coming.
4) Create add_edit_category.blade.php file :-
Now we will create add_edit_category.blade.php file at path /resources/views/admin/categories/ and will add admin design to it and will create add/edit category form.
We will create Add/Edit Category form with the help of General/Advance forms given in AdminLTE template. We will copy form design from AdminLTE template from general.html and advance.html files located at path /AdminLTE-3.0.2/pages/forms/ of AdminLTE folder as shown in video.
Now check in the video; our "Add Category Form" design is ready.
In the next video, we will work on the submission of Add Category form.
In the next video, we will work on the "Add Category" functionality and will add category details to the categories table.
►Click here to subscribe for Laravel & other updates - / stackdevelopers
Popular Stack Developers Series that can help you:-
►Laravel Multi-Vendor E-commerce Website - • Laravel Multi Vendor Tutorial
►React JS Tutorial for Beginners with Laravel - • React JS Tutorial with Laravel for Be...
►Laravel Tutorial for Beginners - • Laravel Tutorial for Beginners | Adva...
►GIT Tutorial for Beginners - • Git Tutorial for Beginners | Create y...
►Laravel API Tutorial - • Laravel API Tutorial | Create API fro...
►Laravel Interview Questions - • Laravel Interview Questions & Answers...
►jQuery Tutorial - • jQuery Tutorial
►Laravel Basic E-commerce Series - • Make Admin Panel / E-commerce Website...
►Laravel Dating Series - • Make Dating / Social Networking Websi...
►Join this channel to get the complete source code of all series:
/ @stackdevelopers
Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates - / stackdevelopers2
►Join Facebook Group to resolve your queries - / stackdevelopers
►Follow on Instagram - / stackdevelopers2
►Follow on GitHub - https://github.com/stackdevelopers
#laravel10 #laravel10tutorial #laravel