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

Add a Laravel command to update the total images #9

Open
lisa-fehr opened this issue Oct 4, 2021 · 0 comments
Open

Add a Laravel command to update the total images #9

lisa-fehr opened this issue Oct 4, 2021 · 0 comments

Comments

@lisa-fehr
Copy link
Owner

lisa-fehr commented Oct 4, 2021

There is a count stored on App\Models\UberTags

The below should be possible using the scopeAllChildren on UberTags. Write a test for the scope.

Parents contain the total images of all children tags.

all is the total of children in photos, California

photos and California has children=true and doesn't tend to have any images of its own.

Based on this example: photos contains Berlin, California, FanExpo. Inside those folders are child tags for up to three years. (IE: 2005, 2009, 2014)

Screen Shot 2021-10-04 at 3 34 45 PM

Current seeding doesn't give a lot of examples:
Screen Shot 2021-10-04 at 4 39 44 PM
Screen Shot 2021-10-04 at 4 40 04 PM

@lisa-fehr lisa-fehr changed the title Add a command to update the total images Add a Laravel command to update the total images Oct 4, 2021
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

1 participant