ryanito/nova-country-flag

A Laravel Nova field.

v1.0.1 2022-12-21 15:04 UTC

This package is auto-updated.

Last update: 2024-11-21 19:51:12 UTC


README

A Laravel Nova field for displaying country flags using Flagcdn.com.

Latest Version on Packagist Total Downloads

Screenshot of index view

Screenshot of detail view

Installation

Install the package into a Laravel app that uses Nova with Composer:

composer require ryanito/nova-country-flag

Usage

Add the field to your resource in the fields method:

use Ryanito\CountryFlag\CountryFlag;

CountryFlag::make('Country')
->withCode($this->country_code)
->withName($this->country_name),