Paragonik/paragonik-backend/app/Models/ReceiptItem.php
2019-12-07 17:00:54 +01:00

21 lines
346 B
PHP

<?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');
}
}