Skip to content

Commit

Permalink
Fix crash issue
Browse files Browse the repository at this point in the history
  • Loading branch information
enjinabner committed Oct 16, 2024
1 parent 9980d13 commit b63c993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Laravel/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function valueString(): AttributeCasts
$this->load('token:id,token_chain_id');
}

return Str::replace('{id}', "{$this->collection->collection_chain_id}-{$this->token->token_chain_id}", $value);
return Str::replace('{id}', "{$this->collection->collection_chain_id}-{$this->token?->token_chain_id}", $value);
}

return $value;
Expand Down

0 comments on commit b63c993

Please sign in to comment.