filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
19.4k stars 2.97k forks source link

Fix: Add the bind value that is initialized in reorder() #14456

Closed bzy107 closed 1 month ago

bzy107 commented 1 month ago

Description

In the case of PostgreSQL, we are performing reorder during individual processing at the time of export. However, when the query contains bindings, the bindings are initialized, leading to an SQL error.

In this fix, we search for the initialized bind attributes before and after the reorder, and re-bind the initialized values to prevent SQL errors.

Visual changes

Functional changes

bzy107 commented 1 month ago

There is an error in PHPStan, but the type of the target is an array.