PHPackages                             thelink/laravel-thailand - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. thelink/laravel-thailand

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

thelink/laravel-thailand
========================

The package may help Laravel developer store user address by easily way

v1.0.1(6y ago)0141MITPHP

Since Feb 12Pushed 6y agoCompare

[ Source](https://github.com/llthelinkll/laravel-thailand)[ Packagist](https://packagist.org/packages/thelink/laravel-thailand)[ RSS](/packages/thelink-laravel-thailand/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (3)Used By (0)

### แพคเกจตำบล, อำเภอ, จังหวัด และรหัสไปรษณีย์สำหรับ Laravel Framework

[](#แพคเกจตำบล-อำเภอ-จังหวัด-และรหัสไปรษณีย์สำหรับ-laravel-framework)

---

[![Latest Stable Version](https://camo.githubusercontent.com/db56c22c321eb9905afce01d68625b7de901eacec93caea100240a142daef3c5/68747470733a2f2f706f7365722e707567782e6f72672f7468656c696e6b2f6c61726176656c2d746861696c616e642f762f737461626c65)](https://packagist.org/packages/thelink/laravel-thailand)[![Build Status](https://camo.githubusercontent.com/3f2d1bdf3bdee7ae8fb4cafed1453d35e3fb5fae1e687ffa331619e3609481e4/68747470733a2f2f7472617669732d63692e6f72672f7468656c696e6b2f6c61726176656c2d746861696c616e642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/thelink/laravel-thailand)[![StyleCI](https://camo.githubusercontent.com/337c600049ac36364078dc08281b655006fb03177973ea5d60f029b519ffac0a/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132303734363834372f736869656c643f7374796c653d666c6174266272616e63683d6d6173746572)](https://styleci.io/repos/120746847)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/887edcc75050edcfbf4059fb76ef750b33586135d5cf2a2d7658b807868a3ec5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7468656c696e6b2f6c61726176656c2d746861696c616e642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/thelink/laravel-thailand/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/58446823355564b7ad60bf89705d093f7d672256ddde742456c5e98434d48347/68747470733a2f2f706f7365722e707567782e6f72672f7468656c696e6b2f6c61726176656c2d746861696c616e642f646f776e6c6f616473)](https://packagist.org/packages/thelink/laravel-thailand)[![GitHub license](https://camo.githubusercontent.com/43e06be1c9d62f73b7485b40314d929b65d1f2a7765edf3b0692cbc31e7dee30/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7468656c696e6b2f6c61726176656c2d746861696c616e642e737667)](https://github.com/thelink/laravel-thailand/blob/master/LICENSE)

แพคเกจนี้จะช่วยให้นักพัฒนาที่ใช้ Laravel Framework ในการพัฒนาสามารถจัดเก็บข้อมูลที่อยู่ได้ง่ายขึ้น

### การติดตั้ง

[](#การติดตั้ง)

1. ติดตั้งแพคเกจ `thelink/laravel-thailand` ผ่านทาง Composer ```
    composer require thelink/laravel-thailand
    ```
2. ทำการเพิ่ม Service Provider ของแพคเกจใน `config/app.php````
    /*
     * Package Service Providers...
     */
    TheLink\ThaiAddress\ThaiAddressServiceProvider::class,
    ```
3. ประกาศใช้งานไฟล์ config ของแพคเกจ ```
    php artisan vendor:publish --provider="TheLink\ThaiAddress\ThaiAddressServiceProvider" --tag="config"
    ```
4. ประกาศใช้งานไฟล์ migration ของแพคเกจ ```
    php artisan vendor:publish --provider="TheLink\ThaiAddress\ThaiAddressServiceProvider" --tag="migrations"
    php artisan migrate
    ```
5. ประกาศใช้งานไฟล์ seeds ของแพคเกจ ```
    php artisan vendor:publish --provider="TheLink\ThaiAddress\ThaiAddressServiceProvider" --tag="seeds"
    composer dump-autoload
    ```
6. เพิ่มข้อมูลตำบล, อำเภอ, จังหวัด และรหัสไปรษณีย์ลงฐานข้อมูล แก้ไขไฟล์ `database/seeds/DatabaseSeeder.php` ดังนี้ ```
