Courses

Laravel Filament Admin v2: Practical Course

Money Column and Mutate Data Before Saving/Showing

Previous: Column Validation Rules
avatar

Is it okay to move this part to the model itself, using mutators and accessors?

avatar

Never tried, I was doing it according to Filament docs. It should work on the Model level but may have negative consequences in how Filament then shows that data. Please try.

avatar

Worked fine but with setting should convert to true.

Tables\Columns\TextColumn::make("default_rate")->money(
                    config("app.currency"),
                    true
                )
								
avatar
You can use Markdown
avatar
You can use Markdown