From f0ce2a43353c6f47aea00c0b7528541b2f599ce9 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 28 Apr 2019 16:38:23 -0600 Subject: [PATCH] Add SuggestionService --- app/Services/SuggestionService.php | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 app/Services/SuggestionService.php diff --git a/app/Services/SuggestionService.php b/app/Services/SuggestionService.php new file mode 100644 index 00000000..a4d6b8d2 --- /dev/null +++ b/app/Services/SuggestionService.php @@ -0,0 +1,46 @@ +whereIsSuggestable(true)->pluck('id'); + foreach($ids as $id) { + self::set($id); + } + } + } +} \ No newline at end of file