count() === 0 && !($request->route()->getName() == 'showCreateOrganiser') && !($request->route()->getName() == 'postCreateOrganiser')) { return redirect(route('showCreateOrganiser', [ 'first_run' => '1' ])); } elseif (Organiser::scope()->count() === 1 && ($request->route()->getName() == 'showSelectOrganiser')) { return redirect(route('showOrganiserDashboard', [ 'organiser_id' => Organiser::scope()->first()->id ])); } $response = $next($request); return $response; } }