Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch all subcounties in a particular district #4

Closed
kusaasira opened this issue Oct 21, 2022 · 3 comments
Closed

Fetch all subcounties in a particular district #4

kusaasira opened this issue Oct 21, 2022 · 3 comments
Assignees

Comments

@kusaasira
Copy link
Owner

kusaasira commented Oct 21, 2022

Create a method that fetches only sub counties from a particular parsed district.

Follow Appblocks Standards and Guidelines.

At the moment, one has to go through a chain to fetch subcounties i.e. see code block below.

$geo = new Geo();
$data = $geo
        ->districts('Mukono')
        ->counties('Mukono Municipality')
        ->sub_counties->all();

Refactor this to accept fetching subcounties as indicated below;

$geo = new Geo();
$data = $geo
        ->districts('Mukono')
        ->sub_counties->all();

For more information on the structure, checkout the repo wiki.

Follow PSR-12 coding standards and guidelines.

@Marshud Marshud self-assigned this Oct 23, 2022
@kusaasira
Copy link
Owner Author

@Marshud I have updated the issue description to provide more insight on how to work on this.

@Marshud
Copy link
Collaborator

Marshud commented Oct 28, 2022

Thank you @kusaasira I will take keen note

@kusaasira
Copy link
Owner Author

@Marshud this was all catered for in a PR referenced above by @RoadSigns . Allow me close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants