https://github.com/ryanito/nova-country-flag
A Laravel Nova field for displaying country flags
https://github.com/ryanito/nova-country-flag
laravel-nova laravel-nova-field
Last synced: 10 months ago
JSON representation
A Laravel Nova field for displaying country flags
- Host: GitHub
- URL: https://github.com/ryanito/nova-country-flag
- Owner: ryanito
- Created: 2022-12-20T16:48:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-21T15:35:48.000Z (over 3 years ago)
- Last Synced: 2025-07-13T20:22:26.451Z (10 months ago)
- Topics: laravel-nova, laravel-nova-field
- Language: Vue
- Homepage:
- Size: 102 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Nova Country Flag Field
A Laravel Nova field for displaying country flags using [Flagcdn.com](https://flagcdn.com).
[](https://packagist.org/packages/ryanito/nova-country-flag)
[](https://packagist.org/packages/ryanito/nova-country-flag)


## Installation
Install the package into a Laravel app that uses [Nova](https://nova.laravel.com) with Composer:
```bash
composer require ryanito/nova-country-flag
```
## Usage
Add the field to your resource in the `fields` method:
```php
use Ryanito\CountryFlag\CountryFlag;
CountryFlag::make('Country')
->withCode($this->country_code)
->withName($this->country_name),
```