App\Http\Controllers\TwitterController::searchForTweets PHP Method

searchForTweets() private method

Search for tweets based on a search query
private searchForTweets ( string $item ) : Collection
$item string
return Collection
    private function searchForTweets($item)
    {
        return Twitter::getSearch(['q' => $item, 'count' => 4, 'format' => 'json']);
    }