<?php

namespace App;

use App\Events\K13HasilBelajarImported;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class K13HasilBelajar extends Model
{
    use SoftDeletes;

    protected $table = 'k13_hasil_belajars';

    protected $fillable = [
        'siswa_id', 'meta',
    ];

    protected $casts = [
        'meta' => 'array',
    ];

    protected $dispatchesEvents = [
        'saved' => K13HasilBelajarImported::class,
    ];

    public function siswa()
    {
        return $this->belongsTo('App\Siswa');
    }
}
