Skip to content

Instantly share code, notes, and snippets.

@nickstewart95
Last active May 27, 2020
Embed
What would you like to do?
public function getFeaturedImageAttribute() {
if (!empty($this->thumbnail)) {
return $this->thumbnail->size('original');
} else {
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment