/** * Execute the job. * * @return void */ public function handle() { HTTPRequest::verifyPeer(env('UNIREST_VERIFYPEER')); $response = HTTPRequest::get($this->url); $posts = $response->body->data->children; foreach ($posts as $post) { // dd($post->data->stickied); if (!$post->data->stickied) { Quote::firstorCreate(["content" => $post->data->title, "author" => $post->data->author, "source" => 'https://www.reddit.com' . $post->data->permalink]); } } }