Ninja::isSelfHost() ? 10 : auth()->user()->company()->account->hosted_company_count]); $test = Ninja::isSelfHost() ? auth()->user()->company()->account->companies->count() < 10 : (auth()->user()->account->isPaid() || auth()->user()->account->isTrial()) && auth()->user()->company()->account->companies->count() < 10 ; if (!$test) { $fail($message); } } }