#36 Laravel 10 Tutorial | Categories Module (III) | Active/Inactive/Delete Categories in Admin Panel

Опубликовано: 13 Февраль 2025
на канале: Stack Developers
1,094
15

►Laravel 10 Tutorial Playlist:    • Laravel 10 Tutorial: Make Admin Panel...  

In Part-36 of the Laravel 10 Tutorial, we will continue working on the Categories module. In this video, we will work on active/inactive functionality and delete functionality for the categories.

First, we will work on the active/inactive status for categories in the admin panel.

1) Update categories.blade.php file:-
Add updateCategoryStatus class with id and category_id for active/inactive status at categories.blade.php file

2) Create Route:-
Create Post route to update status of category in web.php file :-
Route::post('update-category-status','CategoryController@updateCatgoryStatus');

3) Create updateCategoryStatus function :-
Create updateCategoryStatus function in CategoryController to update the category status to active or inactive.

4) Update custom.js file :-
Add jquery function to update active/inactive status for categories in custom.js file.

Now we will work on delete functionality for categories

Add delete link, Create Route and function

►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