Support the ongoing development of Laravel.io →
posted 8 years ago
Views
Last updated 1 year ago.
0

OK so...

"{{ Gravatar::src($comment->user['email'], 25) }}">

Works. I am not sure why, I do appreciate that this is something from PHP101 that I am missing.

0
$comment->user

If I understand correctly, and by all means correct me if i'm wrong anyone. $comment->user returns a array, and you need to specify in the [''] what part of the array you are trying to get from it.

0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 Laravel.io - All rights reserved.