Update FormOtherController.php
This commit is contained in:
@@ -35,6 +35,8 @@ class FormOtherController extends Controller
|
|||||||
$startDate = date('Y-m-' . env('STARTING_DATE')); // Starting date from .env for the current month
|
$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
|
$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])
|
$forms = FormOthers::whereBetween('tanggal', [$startDate, $closingDateNextMonth])
|
||||||
->orderBy('tanggal', 'desc')
|
->orderBy('tanggal', 'desc')
|
||||||
->with('user')
|
->with('user')
|
||||||
|
|||||||
Reference in New Issue
Block a user