You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/app/District.php

31 lines
478 B

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use App\Appended\Traites\UpdateModels;
class District extends Model
{
use UpdateModels;
protected $fillable=['name_fa','city_id','type'];
public function city ()
{
return $this->belongsTo('App\City');
}
public function business_items ()
{
return $this->hasMany('App\BusinessItem');
}
public function businesss ()
{
return $this->hasMany('App\Business');
}
}