Hi, my name is David Carr and I'm a PHP Developer.

Blog Archives Categories Authors About Me Open Source Books Contact Me

Sponsor Me

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

My Latest Book

Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more


A Laravel package for working with Countries.



Via Composer

composer require dcblogdev/laravel-countries

In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just add the service provider in config/app.php file:

'providers' => [
    // ...


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



Copyright © 2009 - 2022 David Carr. All code MIT license. All rights reserved.