Closed tabacitu closed 1 year ago
For my future self, here are the repositories in composer.json
:
"repositories": {
"backpack": {
"type": "composer",
"url": "https://repo.backpackforlaravel.com/"
},
"backpack/media-library-uploads": {
"type": "vcs",
"url": "git@github.com:Laravel-Backpack/media-library-uploads.git"
}
},
Woohooo it works with the fix above:
Edit by Pedro:
removed image due to email leaking
PS: only after removing I remembered that this is private package.
But hey, could go live anytime, and I'd rather not have my email leaked 🤷
Bug report
What I did
avatar
column tousers
;What I expected to happen
Work. Create page load.
What happened
No work. Create page throw ugly
Undefined variable $modelDefinition
error:Here's the whole error stack: https://flareapp.io/share/353GGeo5#F58
What I've already tried to fix it
Nothing. I assume the problem is in
MediaField::definition()
because I see the IF statement there only treats ONE scenario... if thecollection
is defined. If not... big bubu, and it calls a$mediaDefinition
that... doesn't exist.Later edit: I ended up passing
default
for the collection for now, to bypass this error, as that's what it seemed to want. But this is still a big bug. It should NOT require thecollection
parameter, especially since we can assumedefault
😅