Last active
October 29, 2015 14:03
-
-
Save hoanganh25991/e553d8f6d0687d7460b4 to your computer and use it in GitHub Desktop.
Laravel: Dummy Data Seeder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class BreedsTableSeeder extends Seeder { | |
public function run(){ | |
DB::table('breeds')->insert(array( | |
array('id'=>1, 'name'=>"Domestic"), | |
array('id'=>2, 'name'=>"Persian"), | |
array('id'=>3, 'name'=>"Siamese"), | |
array('id'=>4, 'name'=>"Abyssinian"), | |
)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment