chart with laravel-trend throwing SQL error
I've followed this https://filamentphp.com/docs/3.x/widgets/charts#generating-chart-data-from-an-eloquent-model and use "trend", filament recommended for generating data. But it gives me below error
My chart data
And my database is
If I put
strict => false
from config/database.php
then error is gone, but it showing wrong data in chart. what should be the problem?1 Reply
Ah, found the problem.. because I have another 'date' column, trend query like
date_format(created_at, '%Y-%m') as date