Skip to content

Commit e2d2931

Browse files
committed
Removed janky fromJson override
1 parent 36dc1a8 commit e2d2931

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Eloquent/Model.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Illuminate\Contracts\Queue\QueueableCollection;
1313
use Illuminate\Contracts\Queue\QueueableEntity;
1414
use Illuminate\Contracts\Support\Arrayable;
15-
use Illuminate\Database\Eloquent\Casts\Json;
1615
use Illuminate\Database\Eloquent\Model as BaseModel;
1716
use Illuminate\Database\Eloquent\Relations\Relation;
1817
use Illuminate\Support\Arr;
@@ -285,16 +284,6 @@ protected function asDecimal($value, $decimals)
285284
}
286285
}
287286

288-
/** @inheritdoc */
289-
public function fromJson($value, $asObject = false)
290-
{
291-
if (! is_string($value)) {
292-
$value = Json::encode($value);
293-
}
294-
295-
return Json::decode($value, ! $asObject);
296-
}
297-
298287
/** @inheritdoc */
299288
protected function castAttribute($key, $value)
300289
{

0 commit comments

Comments
 (0)