Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/Venta.php

Created Mar 6, 2020
Embed
What would you like to do?
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Venta extends Model
{
public function productos()
{
return $this->hasMany("App\ProductoVendido", "id_venta");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.