Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/cobafixmatepersonal.fixmate.id/app/Models/
Upload File :
Current File : /home/aplikasiposinfo/www/cobafixmatepersonal.fixmate.id/app/Models/KabupatenKota.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class KabupatenKota extends Model
{
    use HasFactory;

    protected $fillable = [
        'id',
        'provinsi_id',
        'nama'
    ];

    // Custom primary key column name
    protected $primaryKey = 'id';

    // If primary key is not auto-incrementing
    public $incrementing = false;

    // If primary key is a non-integer type (like string or UUID)
    protected $keyType = 'string';
    

    public function provinsi(){
        return $this->belongsTo(Provinsi::class,'provinsi_id','id');
    }
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]