Creando tipo pedido ollas en la migracion
This commit is contained in:
parent
e9a6def7c1
commit
7a7cd678ad
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ class CreateTipoPedidosTable extends Migration
|
|||
});
|
||||
|
||||
$hogar = TipoPedido::firstOrCreate(['nombre' => 'hogar']);
|
||||
TipoPedido::firstOrCreate(['nombre' => 'olla']);
|
||||
|
||||
Schema::table('subpedidos', function (Blueprint $table) use ($hogar) {
|
||||
$table->foreignId('tipo_pedido_id')->default($hogar->id);
|
||||
|
|
Loading…
Add table
Reference in a new issue