fix: orWhereIn typo; broaden illuminate/support and inertia-laravel version constraints

This commit is contained in:
Joel Wedemire
2026-04-08 17:16:29 -07:00
parent 391699220f
commit aa6177cf62
2 changed files with 3 additions and 3 deletions

View File

@@ -4,8 +4,8 @@
"type": "library", "type": "library",
"require": { "require": {
"php": "^8.2", "php": "^8.2",
"illuminate/support": "^11.0|^12.0", "illuminate/support": "^11.0|^12.0|^13.0",
"inertiajs/inertia-laravel": "^2.0" "inertiajs/inertia-laravel": "^2.0|^3.0"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {

View File

@@ -87,7 +87,7 @@ class TicketController extends Controller
$groups = TicketingGroup::when($isAgent, fn($q) => $q->whereIn('id', $agentGroupIds))->get(); $groups = TicketingGroup::when($isAgent, fn($q) => $q->whereIn('id', $agentGroupIds))->get();
$priorities = PriorityLevel::whereNull('group_id') $priorities = PriorityLevel::whereNull('group_id')
->orWhenIn('group_id', $agentGroupIds ?? []) ->orWhereIn('group_id', $agentGroupIds ?? [])
->orderBy('sort_order') ->orderBy('sort_order')
->get(); ->get();
$projects = TicketingProject::when($isAgent, fn($q) => $q->whereIn('group_id', $agentGroupIds)) $projects = TicketingProject::when($isAgent, fn($q) => $q->whereIn('group_id', $agentGroupIds))