with('user') ->where('account_id', auth()->user()->account_id) ->distinct() ->select('user_id') ->count(); return $count < auth()->user()->company()->account->num_users; //return auth()->user()->company()->account->users->count() < auth()->user()->company()->account->num_users; } /** * @return string */ public function message() { return ctrans('texts.limit_users', ['limit' => auth()->user()->company()->account->num_users]); } }