Drag and drop elements in a table (Reorder): in the MoonShine admin panel

Опубликовано: 20 Март 2026
на канале: Просто о сложном. CutCode
1,635
75

Today we have another portion of magic from the world of MoonShine! Let's figure out how to implement drag-and-drop of elements in the admin panel. I will share my experience in solving the problem - creating a convenient sorting of messages for the Telegram bot using "hasMany" connections.

Playlist with other videos on MoonShine v2 -
   • MoonShine 2. Видео-гайды  

🎁 There is a gift for you, take it - https://cutcode.dev/l/4pxn 🎁

#MoonShine#laravel#cutcode
---------------------------------------------------------------------------------
🚀📹👨‍🏫 How about upgrading your skills with our educational video courses on web development? Go to my website 👇
https://learn.cutcode.dev/?utm_source=yt

❗️❗️❗️Join our community in telegram - they will help with advice and a lot of interesting things - https://cutcode.dev/l/icwf
---------------------------------------------------------------------------------
⏰ Timecodes:
00:00 - Chatbot project
00:52 - Discussion of the message management problem
03:08 - Adding the message drag and drop function
06:25 - Using the sortable method for sorting
08:07 - Interaction with asynchronous methods
10:20 - Implementation of queries for updating data
12:30 - Checking the position update operation
15:21 - Discussion of the results and capabilities of MoonShine
16:30 - Conclusion and announcement of the next guide

---------------------------------------------------------------------------------
📹 share this video with your friends:

   • Перетаскивание элементов в таблице (Reorde...  

🔔 subscribe to the YouTube channel: https://www.youtube.com/c/CutCodeRu?s...

📼 Laravel course from scratch:
   • Курс по Laravel 8 обучение с нуля. Бесплат...  

Drag and drop elements in a table (Reorder): in the MoonShine admin panel

---------------------------------------------------------------------------------
🔗 our website: https://cutcode.dev/?utm_source=yt
📱 Our telegram channel: https://t.me/laravel_cutcode