<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class AccessLog extends Model
{
    use SoftDeletes;

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

    protected $with = [ 'siswa' ];

    protected $date = [
        'created_at', 'updated_at', 'deleted_at',
    ];

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