@simpledevme
you are correct! The following Eloquent query has the same improved performance. I'll edit the article this evening. Thank you for that information!
return Income::selectRaw("substr(date_income_received, 1, 4) as year")
->whereUserId($request->user()->id)
->groupBy('year')
->pluck('year');
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
@simpledevme you are correct! The following Eloquent query has the same improved performance. I'll edit the article this evening. Thank you for that information!