<?php

namespace App;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Slider extends Model
{
    use HasFactory;

    protected $table = 'sliders';
    protected $fillable = ['background_image','title','sub_title','service_id'];

    public function service()
    {
        return $this->belongsTo(Service::class, 'service_id', 'id');
    }
}
