database/seeders/Protype.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('protypes')->insert([
            'type_name' => 'Laptop'
        ]);
        DB::table('protypes')->insert([
            'type_name' => 'Smartphone'
        ]);
        DB::table('protypes')->insert([
            'type_name' => 'Smart watch'
        ]);
        DB::table('protypes')->insert([
            'type_name' => 'Taplet'
        ]);
        DB::table('protypes')->insert([
            'type_name' => 'Accessory'
        ]);
    }
public function run ( ) { DB :: table ( 'protypes' ) -> insert ( [ 'type_name' => 'Laptop' ] ) ; DB :: table ( 'protypes' ) -> insert ( [ 'type_name' => 'Smartphone' ] ) ; DB :: table ( 'protypes' ) -> insert ( [ 'type_name' => 'Smart watch' ] ) ; DB :: table ( 'protypes' ) -> insert ( [ 'type_name' => 'Taplet' ] ) ; DB :: table ( 'protypes' ) -> insert ( [ 'type_name' => 'Accessory' ] ) ; }
Run the database seeds.
Run the database seeds .