Laravel-Backpack / CRUD

Build custom admin panels. Fast!
https://backpackforlaravel.com
MIT License
3k stars 880 forks source link

[WIP] dont load locally when in dev mode #5511

Open pxpm opened 2 months ago

pxpm commented 2 months ago

WHY

BEFORE - What was wrong? What was happening before this PR?

When basset is in Dev mode, calling Basset::basset($asset) marks it as loaded even if not internalized.

We have two options here:

This PR works as expected and is the easiest (from the side effects perspective), but removing LOADED from the status array is the cleanest, so I opened this PR in the hopes that we can remove the LOADED, but I am not sure about all the implications, nor why LOADED was added there. Maybe for the use case when you have multiple backpack_avatar_url() calls ?

Clarify my doubts here @promatik 🙏