1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00
invoiceninja/app/Models/InvoiceItem.php
2015-03-31 12:38:24 +03:00

20 lines
374 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');
}
}