elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

Implement ArrayAccess

Open finalgamer opened this issue 8 years ago • 2 comments

I have noticed that SomeModel::all()->pluck('id'); does not work because the data_get() helper function in Illuminate\Support\Arr always returns null. I have fixed this by extending the Model class and adding the ArrayAccess interface and methods.

Would be nice it the ArrayAccess interface is included in the default Model class.

http://php.net/manual/de/class.arrayaccess.php

finalgamer avatar Dec 05 '17 13:12 finalgamer

Thanks for the merge.

For anyone looking for this feature, download dev-master for now.

composer require basemkhirat/elasticsearch:dev-master

finalgamer avatar Dec 05 '17 15:12 finalgamer

dev-master doesn't pull this branches code

devSarry avatar Jul 24 '18 14:07 devSarry