Laravel-Backpack / demo

A working demo of Laravel with all Backpack packages installed.
http://backpackforlaravel.com
Other
323 stars 166 forks source link

Fix dropzone in production #549

Closed pxpm closed 1 year ago

pxpm commented 1 year ago

WHY

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

Reported in #548

We had disabled dropzone in ProductCrudController but we left an instance of Dropzone "functional" in Monster.

I decided to no use the disabledInProduction macro as we did in Product because we didn't disabled the other upload fields in Monster. Instead I return an error from the controller.

image

I added the same return in our ProductCrudController in case the user is sneaky and remove the disabled attribute.

tabacitu commented 1 year ago

Lovely