<?php

namespace App\Models\Layanan;

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

// Library
use DB;
use Illuminate\Database\Eloquent\SoftDeletes;

class SaranModel extends Model
{
    use HasFactory, SoftDeletes;

    // Nama tabel
    protected $table = 'saran';
    protected $guarded = ['id'];

    public function users()
    {
        return $this->belongsTo(UsersModel::class, 'idUsers', 'id');
    }
}
