1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/Models/Product.php

32 lines
492 B
PHP
Raw Normal View History

<?php
namespace App\Models;
2019-04-03 02:09:22 +02:00
use App\Models\Filterable;
use App\Utils\Traits\MakesHash;
use Illuminate\Database\Eloquent\Model;
2019-04-03 02:09:22 +02:00
use Illuminate\Database\Eloquent\SoftDeletes;
class Product extends BaseModel
{
use MakesHash;
2019-04-03 02:09:22 +02:00
use SoftDeletes;
use Filterable;
protected $guarded = [
'id',
];
2019-04-03 02:09:22 +02:00
public function company()
{
2019-04-03 02:09:22 +02:00
return $this->belongsTo(Company::class);
}
2019-04-03 02:09:22 +02:00
public function user()
{
2019-04-03 02:09:22 +02:00
return $this->belongsTo(User::class);
}
2019-04-03 02:09:22 +02:00
}