Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Appending an accessor throws an error #46

Closed
djekl opened this issue Sep 7, 2017 · 1 comment
Closed

Appending an accessor throws an error #46

djekl opened this issue Sep 7, 2017 · 1 comment

Comments

@djekl
Copy link
Contributor

djekl commented Sep 7, 2017

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
Copy link
Collaborator

Fixes applied in v2.0.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants