id); throw new NotFoundHttpException; } return $date; case 'currentMonthStart': return Carbon::now()->startOfMonth(); case 'currentMonthEnd': return Carbon::now()->endOfMonth(); case 'currentYearStart': return Carbon::now()->startOfYear(); case 'currentYearEnd': return Carbon::now()->endOfYear(); case 'currentFiscalYearStart': return $fiscalHelper->startOfFiscalYear(Carbon::now()); case 'currentFiscalYearEnd': return $fiscalHelper->endOfFiscalYear(Carbon::now()); } } }