basemkhirat/elasticsearch

Implement ArrayAccess

Opened this issue · 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

Thanks for the merge.

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

composer require basemkhirat/elasticsearch:dev-master

dev-master doesn't pull this branches code