Laravel – Basic Web Crawler using GuzzleHttp
A Web Crawler is a program that navigates the Web and finds new or updated pages for indexing. The Crawler starts with seed websites or a wide range of popular URLs (also known as...
A Web Crawler is a program that navigates the Web and finds new or updated pages for indexing. The Crawler starts with seed websites or a wide range of popular URLs (also known as...
In Laravel, you can use Collection:where() to filter records which meet particular criteria. The where method uses strict comparisons when checking item values. A simple scenario of using where() method:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$collection = collect([ ['product' => 'Belt', 'price' => 200], ['product' => 'Suit', 'price' => 6000], ['product' => 'Shoe', 'price' => 1500], ['product' => 'Blazer', 'price' => 1000], ]); $filtered = $collection->where('price', '>', 1499); $filtered->all(); /* [ ['product' => 'Suit', 'price' => 6000], ['product' => 'Shoe', 'price' => 1500], ] */ |
In e-commerce application we have to filter...