'integer', ]; public function zone() { return $this->belongsTo(Zone::class); } public function scopeActive($query) { return $query->where('status', '=', 1); } protected static function booted() { static::addGlobalScope(new ZoneScope); } }