<?php
/*
* This file is part of the IndoRegion package.
*
* (c) Azis Hapidin <azishapidin.com | [email protected]>
*
*/
namespace App\Models;
use AzisHapidin\IndoRegion\Traits\ProvinceTrait;
use Illuminate\Database\Eloquent\Model;
/**
* Province Model.
*/
class Province extends Model
{
use ProvinceTrait;
/**
* Table name.
*
* @var string
*/
protected $table = 'provinces';
/**
* Province has many regencies.
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function regencies()
{
return $this->hasMany(Regency::class);
}
}
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]