database/seeders/MaterialsSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('materials')->insert(
            [
                ['name'=>'Nhựa ABS'],
                ['name'=>'Nhựa PVC'],
                ['name'=>'Chất dẻo Slam'],
                ['name'=>'Đất nặn'],
                ['name'=>'Gỗ'],
            ],
        );
    }
public function run ( ) { DB :: table ( 'materials' ) -> insert ( [ [ 'name' => 'Nhựa ABS'], [ 'name' => 'Nhựa PVC'], [ 'name' => 'Chất dẻo Slam'], [ 'name' => 'Đất nặn'], [ 'name' => 'Gỗ'], ] , ) ; }
Run the database seeds.
Run the database seeds .
//