We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe2a622 commit 6ef72d9Copy full SHA for 6ef72d9
1 file changed
app/Http/Controllers/PoliciesController.php
@@ -26,7 +26,6 @@ public function getCurrentPolicies(): PoliciesCollection {
26
public function getMissingPolicies(Request $request): PoliciesCollection {
27
$now = CarbonImmutable::now();
28
29
- // This works based on the assumption that the active policy has the highest id given that id is AUTO_INCREMENT
30
$activePolicyIds = Policy::where('active_from', '<=', $now)
31
->selectRaw('MAX(id) as id')
32
->groupBy('policy_type')
0 commit comments