composer require --dev barryvdh/laravel-ide-helper:2.8.2
Предыдущие версии пакета прекрасно работают с предыдущими версиями фреймворка, их никто не сжигал.
"laravel/framework": "^7.0",
"laravel/tinker": "^2.0"
illuminate/console ^8
Problem 1
- Root composer.json requires barryvdh/laravel-ide-helper ^2.10 -> satisfiable by barryvdh/laravel-ide-helper[v2.10.0].
- barryvdh/laravel-ide-helper v2.10.0 requires illuminate/console ^8 -> found illuminate/console[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
$ids = array_unique(array_column($array2, 'users_id'));
$result = array_filter(
$array1,
function ($el) use ($ids) {
return !in_array($el['users_id'], $ids);
}
);