<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes; // <-- 1. Panggil ini

class Barang extends Model
{
    use HasFactory, SoftDeletes; // <-- 2. Gunakan di sini

    protected $table = 'barangs';

    protected $fillable = [
        'nama_barang',
        'deskripsi',
        'kategori',
        'harga',
        'stok',
        'foto'
    ];
}
