Sindbad~EG File Manager
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Traits\PreventDemoModeChanges;
class Country extends Model
{
use PreventDemoModeChanges;
/**
* Get the Zone that owns the Country
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function zone()
{
return $this->belongsTo(Zone::class);
}
public function scopeIsEnabled($query)
{
return $query->where('status', '1');
}
public function states()
{
return $this->hasMany(State::class);
}
public function cities()
{
return $this->hasMany(City::class);
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists