承接 favoriabs/ngstatelga 相关项目开发

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

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

favoriabs/ngstatelga

Composer 安装命令:

composer require favoriabs/ngstatelga

包简介

A laravel package that helps with Nigerian states and local government areas

README 文档

README

Introduction

This laravel package helps developers with Nigerian states and local government areas.

Installation

PHP 5.4+ and Composer is required.

To get this package, simply add the following line to the require block of your composer.json file.

  composer require favoriabs/ngstatelga:1.0.0

Once the NgStateLga is installed, you need to register the service provider. Open up config/app.php and add the following to the providers section.

  • Favoriabs\NgStateLga\NgStateLgaServiceProvider::class,

Usage

After this is done, you'll need to run the following commands.

  • php artisan vendor:publish . This will publish migration files for both states and local government areas to your migration file. It will also publish seeder files. It will also publish the view page, so you can edit it as you want the page to be.

When this is done, you will need to run php artisan migrate to migrate. Then php artisan db:seed to seed with the appropriate states and local government areas. Do not forget to add the classes for the seeder files to DatabaseSeeder.php like so:

  $this->call(StatesTableSeeder::class);
  $this->call(Lgas_1_TableSeeder::class);
  $this->call(Lgas_2_TableSeeder::class);
  $this->call(Lgas_3_TableSeeder::class);
  $this->call(Lgas_4_TableSeeder::class);

You can now navigate to the appropriate route (/ngstatelga) at the root of your app like so:

localhost:8000/ngstatelga

This should load up a view with the all Nigerian states and their respective local government areas.

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

License

The MIT License (MIT).

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固