fix: orWhereIn typo; broaden illuminate/support and inertia-laravel version constraints
This commit is contained in:
@@ -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": {
|
||||||
|
|||||||
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user