承接 enmaboya/country-select 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

enmaboya/country-select

最新稳定版本:1.0

Composer 安装命令:

composer require enmaboya/country-select

包简介

A Laravel Nova field.

README 文档

README

This package provides a customizable select field.

Installation

composer require enmaboya/country-select

Basic usage

use Enmaboya\CountrySelect\CountrySelect;
	
CountrySelect::make('Country', 'county_code')

Available settings

  1. only - only countries from the list will be displayed

use Enmaboya\CountrySelect\CountrySelect;
   
CountrySelect::make('Country', 'county_code')->only(['US', 'RU'])
  1. except - excludes countries from the list

use Enmaboya\CountrySelect\CountrySelect;
   
CountrySelect::make('Country', 'county_code')->except(['BY', 'CN'])
  1. onlyContinents - only сontinents from the list will be displayed

use Enmaboya\CountrySelect\CountrySelect;
  
CountrySelect::make('Country', 'county_code')->onlyContinents(['EU', 'AS'])
  1. exceptContinents - excludes сontinents from the list

use Enmaboya\CountrySelect\CountrySelect;
   
CountrySelect::make('Country', 'county_code')->exceptContinents(['SA', 'NA', 'OC'])

Available list of continents:

  • AF - Africa
  • AS - Asia
  • EU - Europe
  • NA - North America
  • OC - Oceania
  • SA - South America

Make the field dependent

You can make this field dependent and use it together with the "Laravel Nova Place Input field".

In this case the search will be limited to the country selected in the "Select Country field".

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 4.11k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-07