Update FormOtherController.php

This commit is contained in:
Jagad R R
2025-03-04 12:34:40 +07:00
parent 4835b806e6
commit 5339ee4974
@@ -35,6 +35,8 @@ class FormOtherController extends Controller
$startDate = date('Y-m-' . env('STARTING_DATE')); // Starting date from .env for the current month
$closingDateNextMonth = date('Y-m-', strtotime('+1 month')) . env('CLOSING_DATE'); // Closing date for the next month
dd($startDate, $closingDateNextMonth);
$forms = FormOthers::whereBetween('tanggal', [$startDate, $closingDateNextMonth])
->orderBy('tanggal', 'desc')
->with('user')