2 months ago

Best Laravel Drag and Drop for Lists

Posted 2 months ago by WallyJ

I have a list of DB items. Some of the items are more important. Some less. There is a db field called importance which has a value of either 0 for less, or 1 for more.

In my Laravel view I want to show the list of items with a horizontal (or vertical) line between more important and less important items. Then I need to be able to drag items from one side to the other, changing the db value.

This could probably be done with JQuery, Vue, or Livewire, or maybe even plain JS.

What would you suggest? I am already playing with Livewire in the project and am trying to stay away from the others, but I'm a novice at them all.

Please sign in or create an account to participate in this conversation.