dazza-dev/laravel-geography 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

dazza-dev/laravel-geography

最新稳定版本:v1.0.0

Composer 安装命令:

composer require dazza-dev/laravel-geography

包简介

Provide countries, states, and cities.

README 文档

README

The Laravel Languages package provides a ready-to-use list of languages for your Laravel application. This package simplifies the task of managing languages across your app, allowing you to easily retrieve language codes (alpha-2, alpha-3) and names for a variety of purposes like localization, language selection in forms, or general language-related data management.

Setup

  • Install
composer require dazza-dev/laravel-geography
  • Publish migrations and seeders
php artisan vendor:publish --tag="laravel-geography"
  • Run migrations and seeders
php artisan migrate
php artisan db:seed --class=GeographySeeder

Usage

  • Get all Languages
use DazzaDev\Languages\Facades\Languages;

Languages::all();
  • Get only active languages
use DazzaDev\Languages\Facades\Languages;

Languages::active();
  • Get language by code
use DazzaDev\Languages\Facades\Languages;

Languages::getByCode('en'); // Returns English
Languages::getByCode('eng'); // Also returns English
  • Activate language by code or name
use DazzaDev\Languages\Facades\Languages;

Languages::activate('en');
Languages::activate('eng');
  • Deactivate language by code or name
use DazzaDev\Languages\Facades\Languages;

Languages::deactivate('en');
Languages::deactivate('eng');

Contributions

Contributions are welcome. If you find any bugs or have ideas for improvements, please open an issue or send a pull request. Make sure to follow the contribution guidelines.

Author

Laravel Languages was created by DAZZA.

License

This project is licensed under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-12