check()) { $ids = explode(',', $value); /** @var \Illuminate\Support\Collection $object */ $object = TransactionJournal::whereIn('transaction_journals.id', $ids) ->where('transaction_journals.user_id', auth()->user()->id) ->get(['transaction_journals.*',]); if ($object->count() > 0) { return $object; } } throw new NotFoundHttpException; } }