From 7f437d47146304b7dded92e9a7942a89e24d7e91 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 26 May 2019 18:34:54 -0600 Subject: [PATCH] Add VideoThumbnail command --- app/Console/Commands/VideoThumbnail.php | 52 +++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 app/Console/Commands/VideoThumbnail.php diff --git a/app/Console/Commands/VideoThumbnail.php b/app/Console/Commands/VideoThumbnail.php new file mode 100644 index 00000000..c2d01aa6 --- /dev/null +++ b/app/Console/Commands/VideoThumbnail.php @@ -0,0 +1,52 @@ +whereNull('thumbnail_path') + ->take($limit) + ->get(); + foreach($videos as $video) { + Pipeline::dispatchNow($video); + } + } +}