Files
NEUP-FleaMarket/database/seeds/GoodCatSeeder.php
T
catsworld fb2cd0eee7 A huge develop update to commit.
Upgrade the Laravel to version 5.4.
Optimize the directory structure.
Add a avatar function.
Add the validate for addGood form.
Adjust the frontend pages.
Other changes.
2017-03-10 10:49:08 +08:00

32 lines
670 B
PHP

<?php
use Illuminate\Database\Seeder;
class GoodCatSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('good_cat')->insert([
'cat_name' => '书籍',
'cat_index' => '0'
]);
DB::table('good_cat')->insert([
'cat_name' => '日用品',
'cat_index' => '1'
]);
DB::table('good_cat')->insert([
'cat_name' => '其他',
'cat_index' => '3'
]);
DB::table('good_cat')->insert([
'cat_name' => '滑稽',
'cat_index' => '2'
]);
}
}