The Country Codes package is a Composer plugin that provides an automated version of the Country Codes database. This database includes country, iso-codes, country names, country names with phone codes, phone codes as well an admin page to manage your list of data.
Also, my main reason to build this package was to send WhatsApp messages (specifically OTP codes).
Irando\CountryCodes\CountryCodesServiceProvider::class, ]; Run either of the commands below to publish package files php artisan vendor:publish
Run this command to add countries table into your database php artisan migrate