<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App;
class UpZila extends Model
{
protected $fillable = [
'name',
'slug',
'city_id',
];
public function city()
{
return $this->belongsTo(City::class);
}
public function translations()
{
return $this->morphMany('App\Models\Translation', 'translationable');
}
}