I have selected a month from month field
<input class="form-control" type="month" id="report_month" name="report_month"
value="{{ old('report_month') }}">
That value is ‘2023-02’.
How to get last date of that specific month in controller?
Value required is :2023-02-28
2
Answers
or
another ways
used
->modify('-2 month')
part is dynamically, we get valuesOR