Closed Dhaoui0Chaher closed 4 years ago
@Dhaoui0Chaher just override the public function getForumAvatarAttribute(): string
method from CanDiscuss.php in your User model
I deleted the public function getForumAvatarAttribute(): string
and still not work
I save images in storage, what should I do?
I tried to change the chatter/src/views/discussion.blade.php
<img src="{{ Config::get('chatter.user.relative_url_to_image_assets') . $post->user->{$db_field} }}">
to
<img src="<?php echo asset("storage/$post->user->{$db_field} ")?>">
and to
<img src="<?php echo asset("storage/$post->user->avatar")?>">
and not work
No, just override the function to return whatever you want, don't delete it.
Your user model:
public function getForumAvatarAttribute(): string {
return "the image URL you want to return";
}
Do not try to change old chatter views, since they aren't used, it's all Vuejs.
I'm working with chatter forum with laravel 6 and I have a problem.
the Problem: chatter use avatars for the profiles photo's, how I can change that to use images links in the database? I tried to change the Config/chatter.php but still not work