<?php
/*
* This file is part of the IndoRegion package.
*
* (c) Azis Hapidin <azishapidin.com | [email protected]>
*
*/
namespace App\Models;
use AzisHapidin\IndoRegion\Traits\VillageTrait;
use Illuminate\Database\Eloquent\Model;
use App\Models\District;
/**
* Village Model.
*/
class Village extends Model
{
use VillageTrait;
/**
* Table name.
*
* @var string
*/
protected $table = 'villages';
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'district_id'
];
/**
* Village belongs to District.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function district()
{
return $this->belongsTo(District::class);
}
}
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]