Skip to content

ggoforth/laravel-5-us-states-seeder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

#Laravel 5 State Seeder

Usage

$ php artisan make:model State

This will generate the model and migration for your database. In your migration you need to include string fields for code and name. Then simply drop the StatesSeeder.php into your seeds folder. Back at the command line run:

$ php artisan migrate
$ php artisan db:seed

You'll now have a functional States database suitable for populating drop downs or whatever else you crazy kids do with your states tables.

About

Provides a simple United States database table Seeder for Laravel 5.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages