It is necessary to select specific keys from the collection. The documentation describes that this can be done using the method only. What am I doing wrong?
Have a collection view:
$filter = collect([
'q' => 'q',
'w' => 'w',
'e' => [
'a' => 'a',
's' => 's'
To my knowledge, to refer to a nested array you can use point entry only(['e.a', 'e.s'])
for the reverse method, except
this option works correctly in the case of only
- does not work. either I can't notice the elephant, or this is a bug version.
By the way, the version of laravel - 5.7