where('status', 1); } public function states() { return $this->hasMany(LocationRestrictionState::class, 'location_restriction_id'); } }