Currently seeking new career opportunities in web development, particularly with Laravel, Hire Me
Laravel Countries

Introduction

A Laravel package for working with Countries.

https://github.com/dcblogdev/laravel-countries

Installation

Via Composer

composer require dcblogdev/laravel-countries

Usage

In a controller import the class:

use Dcblogdev\Countries\Facades\Countries;

In a view or closure call the facade:

This will return an object of countries

Countries::all();
Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!

Sponsor

My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Learn Laravel with Laracasts

Faster Laravel Hosting

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.