-
Notifications
You must be signed in to change notification settings - Fork 298
Open
Labels
Description
so in this code
You take a laravel model object and turn it from a model into, for example - when I do $this->getModel():
array:1 [
"Goblin" => array:15 [
"id" => 1
"name" => "Goblin"
"strength" => 8
"dexterity" => 10
"intelligence" => 4
"agility" => 12
"health" => 40
"damage" => 6
"armor_class" => 8
"has_antique_damage" => null
"antique_damage" => null
"casts_spells" => 0
"cast_damage" => null
"created_at" => "2019-02-09 23:18:32"
"updated_at" => "2019-02-09 23:18:32"
]
]
Because of this I can no longer do: $this->getModel()->name because its an array. WTH?
The documentation wasn't even updated to reflect this change.
is there a work around to get my model back? Like this just seems dumb to me, in versions prior to tag 1.16.x it was never like this.