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...
Laravel 5.4 continues the improvements and refactoring of framework made in Laravel 5.3 by adding support for plenty of modules and new features. We will discuss top 3 new features in Laravel 5.4 that...
Lumen – A PHP micro framework to create micro services and blazing fast RESTful APIs by Laravel. Lumen is developed by Taylor Otwell who previously developed a very interesting PHP framework Laravel. According to Taylor...