CoursesTopicsPathsForum
Search the library
Sign in Get started

Laravel Model Popularity

Start watchingAdd to bookmarks
19 episodes•1 hr 38 mins•3 years ago

Overview

Let's cover scoping models by their popularity (e.g. most popular articles last week). From scratch, we'll build out the ability to 'visit' models within a timeframe and unique restrictions, and then fetch the most popular within any given timeframe. We'll cover everything with a suite of tests using the Pest testing framework.

Alex Garrett-Smith
Alex Garrett-Smith
Hey, I'm the founder of Codecourse!

Episodes

0%
Your progress
  • Total: 1h 38m
  • Played: 0m
  • Remaining: 1h 38m
01. Introduction and demo
7m 39s
0%
02. Fresh Laravel app with Pest
3m 5s
0%
03. Setting up visitable things
3m 49s
0%
04. Polymorphic visits
5m 22s
0%
05. Logging visits with a pending visit
6m 8s
0%
06. Storing the IP address
2m 42s
0%
07. Storing data with visits
2m 41s
0%
08. Storing the user ID with each visit
5m 6s
0%
09. Preventing visit replication
6m 1s
0%
10. Visit logging timeframes
9m
0%
11. Testing the ordering issue
3m 5s
0%
12. Adding more intervals
6m
0%
13. Getting total visit counts
7m 27s
0%
14. Scoping by all time popularity
5m 55s
0%
15. Scoping popularity between two dates
10m 2s
0%
16. Last x days popularity
4m 32s
0%
17. Weekly popularity
4m 25s
0%
18. Monthly popularity
3m 16s
0%
19. Yearly popularity
2m 14s
0%
Join the newsletter

No spam, just occasional updates.

Learn
Courses Paths Snippets Topics Articles Search
Get help
Forum Contact us
Join
Pricing Testimonials
PrivacyTermsStatusUses

© 2024 Codecourse Ltd. All Rights Reserved. Made in the UK.