Sens420
Sens420
FFilament
Created by Sens420 on 5/23/2024 in #❓┊help
...\Tables\Columns\Concerns\{closure}(): Return value must be of type ?string, Money\Money return
Thanks!
7 replies
FFilament
Created by Sens420 on 5/23/2024 in #❓┊help
...\Tables\Columns\Concerns\{closure}(): Return value must be of type ?string, Money\Money return
Nevermind, I found a solution on LaravelDaily. public function get(Model $model, string $key, mixed $value, array $attributes): float { // Transform the integer stored in the database into a float. return round(floatval($value) / 100, precision: 2); }
7 replies
FFilament
Created by Sens420 on 5/23/2024 in #❓┊help
...\Tables\Columns\Concerns\{closure}(): Return value must be of type ?string, Money\Money return
That I already figured out. But maybe you can hint me how to do that? But i need the object return also for frontend.
7 replies