Skip to content

Commit

Permalink
Remove duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardStyles committed Oct 27, 2020
1 parent f570c54 commit d108be6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Casts/EncryptedCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Illuminate\Database\Eloquent\JsonEncodingException;
use Illuminate\Support\Collection;
use Illuminate\Support\Collection as BaseCollection;

class EncryptedCollection extends Encrypted
{
Expand All @@ -21,7 +20,7 @@ class EncryptedCollection extends Encrypted
*/
public function get($model, $key, $value, $attributes)
{
return new BaseCollection(json_decode(parent::get($model, $key, $value, $attributes)));
return new Collection(json_decode(parent::get($model, $key, $value, $attributes)));
}

/**
Expand Down

0 comments on commit d108be6

Please sign in to comment.