定制 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
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固