up
This commit is contained in:
@@ -25,6 +25,11 @@ class InventarioPrenda extends Model
|
||||
return $this->belongsTo(\App\Models\Producto::class, 'producto_id');
|
||||
}
|
||||
|
||||
public function distribuciones()
|
||||
{
|
||||
return $this->hasMany(\App\Models\InventarioPrendaDistribucion::class, 'inventario_prenda_id');
|
||||
}
|
||||
|
||||
protected static function booted()
|
||||
{
|
||||
static::creating(function ($inventario) {
|
||||
|
||||
Reference in New Issue
Block a user