Laravel-Backpack / demo

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

Remove fields from fillable that are not part of the model table #458

Closed pxpm closed 1 year ago

pxpm commented 1 year ago

WHY

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

Reported in https://github.com/Laravel-Backpack/demo/issues/457

We introduced some fields as fillable in Monster model, but they are not columns in monsters table.

When getting the relation we attempted to get those fields as part of the pivot relation and it would break the list page.

AFTER - What is happening after this PR?

It works again.

HOW

How did you achieve that, in technical terms?

Excluded fields from fillable that are not part o the model table.

Is it a breaking change or non-breaking change?

Non.