<?php

namespace App\Models;

use App\Traits\HasImageUrl;
use Illuminate\Database\Eloquent\Model;

class InnerService extends Model
{
    use HasImageUrl;
    protected $hidden = ['pivot'];
    protected $fillable = [
        'image',
        'title',
        'description',
        'service_id',
    ];
    public function service()
    {
        return $this->belongsToMany(Service::class, 'inner_service_service', 'inner_service_id', 'service_id');
    }
}
