Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Countries Laravel Package

drnd-dev/laravel-countries

View on GitHub
Deep Wiki
Context7

Domain

Below, you'll find a list of methods available, which is used in the Country model to help you query countries based on their domain information.

These methods allow you to filter countries by their top-level domains (TLDs) and alternative TLDs.

Where Domain

Find countries that have a specific top-level domain (TLD).

->whereDomain(string $domain)
Country::whereDomain('.us')->get();

Where Domains

Find countries that have any of the specified top-level domains.

->whereDomains(array $domains)
Country::whereDomains(['.uk', '.fr', '.de'])->get();

Where Domain Alternative

Find countries that have a specific alternative top-level domain (alternative TLD).

->whereDomainAlternative(string $domains)
Country::whereDomainAlternative('.us')->get();

Where Domains Alternative

Find countries that have any of the specified alternative top-level domains (alternative TLDs).

->whereDomainsAlternative(array $domains)
Country::whereDomainsAlternative(['.uk', '.fr', '.de'])->get();
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium