<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Materi extends Model
{
    protected $table = 'materi';
    public $timestamps = false;

    protected $fillable = [
        'id_style',
        'id_materi',
        'konten',
        'audio',
        'teks',
        'kodesoal',
        'outputkode',
        'rangkuman',
    ];

    // HAPUS baris ini:
    // protected $primaryKey = ['id_style', 'id_materi'];

    public $incrementing = false;

    // Jika kamu ingin menggunakan find(), override method getKey() secara manual (opsional lanjutan)
}
