Laravel Eloquent Tip 💡

Did you know there are 5 ways to remove relations from an Eloquent model?

Some mutate the model.
Some return a clone.

Laravel 12.54 just added a cleaner option: withoutRelation() ✨
image

3

honestly thinking about developing this laravel pint rule (as opt-in!) that just removes every single useless comment from your codebase.. it would obviously still keep the typing information! what do you think? yes or yes? 🧼

image

29

Whenever I used existing drag-and-drop libraries with Livewire, I kept running into issues. The livewire-sortable package relies on Shopify Draggable, which is heavier and tends to cause quite a few problems.

So I built this package that uses SortableJS instead. It works well with wire:navigate, supports multiple containers, and preserves Livewire references correctly. Only 36KB.

Yes, it’s not a huge thing, but it solves a real problem.

👉 npm install wire-sortable

github.com/edulazaro/wire-sortable

1

58