Examples of Collection Methods: Filter (5)

Short information about filter

The filter method filters the collection using the given callback, keeping only those items that pass a given truth test.
Read more in the official Laravel docs.

Repository: spatie/dashboard.spatie.be (Github)
★ 1906 Created: Jun 2017 Updated: Apr 2021 Laravel version: 8
Files in the example:
- app/Services/GitHub/GitHubApi.php
Repository: spatie/spatie.be (Github)
★ 306 Created: Oct 2020 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Services/GitHub/GitHubApi.php
Repository: opendialogai/opendialog (Github)
★ 171 Created: May 2019 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Http/Controllers/StatisticsController.php
Repository: Astrotomic/opendor.me (Github)
★ 46 Created: May 2021 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Http/Controllers/Web/ProfileController.php
Repository: aschmelyun/laravel-job-board (Github)
★ 38 Created: Mar 2021 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Http/Controllers/ListingController.php

Additional resources on filter: