Paragonik/paragonik-backend/app/Models/ReceiptItem.php

21 lines
346 B
PHP
Raw Normal View History

2019-12-07 17:00:54 +01:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ReceiptItem extends Model
{
protected $table = 'receipt_items';
public function receipts()
{
return $this->belongsTo('App\Models\Receipt');
}
public function categories()
{
return $this->hasMany('App\Models\Category');
}
}