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 3d2417b commit 8b38391Copy full SHA for 8b38391
app/Http/Controllers/RedirectToElectionController.php
@@ -12,7 +12,9 @@ class RedirectToElectionController extends Controller
12
public function __invoke(?Election $election = null): RedirectResponse
13
{
14
$election ??= Election::query()
15
+ ->withoutGlobalScopes()
16
->where('is_visible', true)
17
+ ->latest('date')
18
->first();
19
20
abort_unless($election, 404);
0 commit comments