I can't remember the episode, but why do you need that?
Apologies for jumping the gun, if you want to know how to do it, just create a query scope for whatever model you're retrieving and set a where clause to check the published_at timestamp. When you're creating a resource, in this case an Article, then set a published_at timestamp to a date in the future.
Article Model
protected $dates = [
'published_at'
];
public function scopePublished($query)
{
$query->where('published_at', '<=', Carbon::now());
}
ArticleController Controller
public function index()
{
$articles = Article::with('user')->published()->latest('published_at')->paginate(5);
return view('articles.index', compact('articles'));
}
The above will get all of the published articles, in reverse chronological order (latest first, according to the published_at timestamp) and paginate the results.
Hope that helps.
Sorry for not answering your actual question about the lesson video, I have no idea ;)