Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 6, 2020 20:53
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