yabhq / laravel-scout-mysql-driver

Laravel Scout MySQL Driver
MIT License
522 stars 113 forks source link

Appending an accessor throws an error #46

Closed djekl closed 7 years ago

djekl commented 7 years ago

If in a model I use protected $appends to add say a computed field like full_address then you will get

Undefined offset: 0 {"exception":"[object] (ErrorException(code: 0): Undefined offset: 0 at .../vendor/yab/laravel-scout-mysql-driver/src/Services/ModelService.php:44)

Will submit a simple PR that will fix this now

msonowal commented 7 years ago

Fixes applied in v2.0.1