Laravel: Reordering with Observers and jQuery UI Sortable

preview_player
Показать описание
In this demo-project we will talk about reordering positions of the DB records, in two ways. First is a typical back-end only way, with Eloquent Observers, and second one is more visual with drag-drop and jQuery UI Sortable.

- - - - -
Рекомендации по теме
Комментарии
Автор

After two and a half years, this video is still beneficial. Well done Povilas. 👏 And thank you. I appreciate your hard work.

yasinbaran
Автор

Now this is a very interesting and known info that I was looking for from last few days. Keep up the good work 👏

teamadevelopment
Автор

Big thanks to your work, it really helps me learning Laravel !
hello from France

JohnSmithhh
Автор

that's exactly what I'm looking for, man thank you so much!

AmmarTaicho
Автор

Thank you so much for your great content.

rakeshthapa
Автор

Awesome!. I am working on a project with a similar functionality. But i can't seem to figure out how to use this if say i have multiple vendors and i want each vendor to have this functionality??

parumhr
Автор

Know of any good resources giving examples of doing this in Vue.js? I am working on similar functionality right now.

tannercampbell
Автор

can it consider more deep parent child relations for example like this does it available in the quick admin panel. thanks

fahadsheikh
Автор

Dear Povilas. As i promised - implemented! Works as expected. The only thing - seems with Laravel updates since video - some thing changed. And this code needs to be updated. Maybe i am wrong as less practice

dmdk
Автор

Can this pe achieved in alpine js with livewire?
Thanks

iShah
Автор

Do you have a course for this project in Laraveldaily?
Cuz I think it has a lot of the basic stuff that is very useful for any Laravel real project!
If there is a course containing all the concept of this project I would definitely buy that course.

AmmarTaicho
Автор

Ad if is possible how to reorder nested categories

zbogoevskigmailcom
Автор

Is there any easier or newer way of doing this?

alnahian
Автор

This is great, but if you are adding 'position' as a new column, what do you suggest? The columns are all given a default position and lets say that default is 0, all the existing end up with a position of -1 upon update. Obviously, this can be added in, but something to think about.

ryanm.
Автор

Awesome! perhaps you can do an update of this with Livewire?

winmodif
Автор

Today i learnt SaveQuitely and Observers work only for Eloquent Models. Also jQuery Sortable UI 👍

nabeelyousafpasha
Автор

Declaration of must be compatible with $options = []) how to fix this

pramodbhandari
Автор

Great video, Povilas. I missed why you used the DB query instead of the model methods. You said it's because it doesn't trigger the observer - why don't you want to trigger the observer on that query?

stealmymarketing
Автор

I likes u videos!!! On your code u have a "Gate::denies(permition_url)" you have a tutorial how it works? please

devmaster
Автор

I must confess you are very knowledgeable. Infact extremely. But you teach too fast. Too fast. We always have to go study your code. Having knowledge is one thing, teaching and passing knowledge is another. Anyways. I'm a big fan. You're very knowledgeable sir

uchennajoelicon