<?php

    namespace Modules\Lpj\Models;

    use Modules\Lpj\Database\Factories\JenisLegalitasJaminanFactory;

    class JenisLegalitasJaminan extends Base
    {
        protected $table    = 'jenis_legalitas_jaminan';
        protected $fillable = ['code', 'name','slug','custom_field','custom_field_type','custom_fields'];

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

        public function customFields()
        {
            return $this->hasMany(CustomField::class);
        }
    }
