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

19 lines
337 B
PHP

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