database/seeds/CategoriesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {       
                DB::table('categories')->insert([
        	[
	        	'name' => 'Smartphones'
	        ],
	        [
	        	'name' => 'Foto/video'
        	],
        	[
	        	'name' => 'Tablets'
        	],
        	[
	        	'name' => 'Accesorios'
        	]
        ]);
    }
public function run ( ) { DB :: table ( 'categories' ) -> insert ( [ [ 'name' => 'Smartphones' ] , [ 'name' => 'Foto/video' ] , [ 'name' => 'Tablets' ] , [ 'name' => 'Accesorios' ] ] ) ; }
Run the database seeds.
Run the database seeds .