►Laravel 10 Tutorial Playlist: • Laravel 10 Tutorial: Make Admin Panel...
In Part-38 of the Laravel 10 Tutorial, we will continue working on the Categories module. In this video, we will work on the "Add Category" functionality and will add category details to the categories table.
1) Update add_edit_category.blade.php file :-
First of all, we will update add_edit_category.blade.php file to make sure to add form action, name and id's for form and for all fields.
2) Update addEditCategory function :-
Now we will update addEditCategory function at CategoryController to add query for adding category details in categories table and return the user to categories page with success message.
We will only add main category for now that does not have any parent category so we will add parent_id as 0 for now.
3) Include Header Statements :-
Include Session and Image class at top of CategoryController :-
use Session;
use Image;
4) Update categories.blade.php file :-
We will show success message in categories page if category successfully added.
Now you can see in the video we can able to add category successfully. In the next video, we will work on validating the add category form.
►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