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

19 lines
337 B
PHP
Raw Normal View History

2019-12-08 21:55:07 +01:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
public function receipt_items()
{
return $this->belongsTo('App\Models\ReceiptItem');
}
public function services()
{
return $this->belongsToMany('App\Models\Service', 'categories_services');
}
}