1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/Models/InvoiceItem.php
2015-11-07 23:15:37 +11:00

26 lines
473 B
PHP

<?php namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
class InvoiceItem extends EntityModel
{
use SoftDeletes;
protected $dates = ['deleted_at'];
public function invoice()
{
return $this->belongsTo('App\Models\Invoice');
}
public function product()
{
return $this->belongsTo('App\Models\Product');
}
public function account()
{
return $this->belongsTo('App\Models\Account');
}
}