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.
32 lines
670 B
PHP
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'
|
|
]);
|
|
}
|
|
}
|