fix: orWhereIn typo; broaden illuminate/support and inertia-laravel version constraints
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
"type": "library",
|
||||
"require": {
|
||||
"php": "^8.2",
|
||||
"illuminate/support": "^11.0|^12.0",
|
||||
"inertiajs/inertia-laravel": "^2.0"
|
||||
"illuminate/support": "^11.0|^12.0|^13.0",
|
||||
"inertiajs/inertia-laravel": "^2.0|^3.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -87,7 +87,7 @@ class TicketController extends Controller
|
||||
|
||||
$groups = TicketingGroup::when($isAgent, fn($q) => $q->whereIn('id', $agentGroupIds))->get();
|
||||
$priorities = PriorityLevel::whereNull('group_id')
|
||||
->orWhenIn('group_id', $agentGroupIds ?? [])
|
||||
->orWhereIn('group_id', $agentGroupIds ?? [])
|
||||
->orderBy('sort_order')
|
||||
->get();
|
||||
$projects = TicketingProject::when($isAgent, fn($q) => $q->whereIn('group_id', $agentGroupIds))
|
||||
|
||||
Reference in New Issue
Block a user