A set of thanos Laravel collection macros
mammut-alex/laravel-collection-thanos is a Laravel package for a set of thanos laravel collection macros.
It currently has 1 GitHub stars and 363 downloads on Packagist (latest version v1.1.1).
Install it with composer require mammut-alex/laravel-collection-thanos.
Discover more Laravel packages by mammut-alex
or browse all Laravel packages to compare alternatives.
Last updated

Require this package in your composer.json and update composer.
"mammut-alex/laravel-collection-thanos": "^1.0"
or composer require mammut-alex/laravel-collection-thanos
Thanos is disaster some of you collection.
Here is an example
$data = new Collection([1, 2, 3, 4, 5, 6, 7, 8, 9,10]);
$data->thanos()->all();//[2,4,5,8,10]
Also you can choose the degree of kindness of the Thanos (what percentage of ~~creature~~ he items to have mercy)
$data = new Collection([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
$data->thanos(20)->all();//[2,5]
Laravel Collection Thanos is open-sourced software licensed under the MIT license.