diff --git a/app/Models/Producto.php b/app/Models/Producto.php new file mode 100644 index 0000000..ee30aac --- /dev/null +++ b/app/Models/Producto.php @@ -0,0 +1,17 @@ +belongsToMany(Pedido::class); + } +} diff --git a/database/migrations/2024_03_11_224041_create_productos_table.php b/database/migrations/2024_03_11_224041_create_productos_table.php new file mode 100644 index 0000000..e524043 --- /dev/null +++ b/database/migrations/2024_03_11_224041_create_productos_table.php @@ -0,0 +1,27 @@ +id(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('productos'); + } +};