Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Created January 19, 2023 20:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codigoconjuan/2286ec5b38301776f6adc105dba0510d to your computer and use it in GitHub Desktop.
Save codigoconjuan/2286ec5b38301776f6adc105dba0510d to your computer and use it in GitHub Desktop.
Seeder de Categorias para Laravel y React
DB::table('categorias')->insert([
'nombre' => 'Café',
'icono' => 'cafe',
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
]);
DB::table('categorias')->insert([
'nombre' => 'Hamburguesas',
'icono' => 'hamburguesa',
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
]);
DB::table('categorias')->insert([
'nombre' => 'Pizzas',
'icono' => 'pizza',
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
]);
DB::table('categorias')->insert([
'nombre' => 'Donas',
'icono' => 'dona',
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
]);
DB::table('categorias')->insert([
'nombre' => 'Pasteles',
'icono' => 'pastel',
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
]);
DB::table('categorias')->insert([
'nombre' => 'Galletas',
'icono' => 'galletas',
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
]);
@hernanharco
Copy link

remil gracias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment