Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 6, 2020 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/326ed066f7206fef8499808ec0a10539 to your computer and use it in GitHub Desktop.
Save parzibyte/326ed066f7206fef8499808ec0a10539 to your computer and use it in GitHub Desktop.
<?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