File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class User extends Authenticatable
2828 ];
2929
3030 // Accessors
31- public function getAvatarAttribute ($ avatar )
31+ public function getAvatarPathAttribute ($ avatar )
3232 {
3333 return $ avatar ? '/storage/avatars/ ' . $ avatar : 'https://via.placeholder.com/250 ' ;
3434 }
Original file line number Diff line number Diff line change 1010 <div class =" box__section row" >
1111 <div class =" row__column row__column--compact mr-2" style =" width : 25px ;" >
1212 @if ($activity -> user )
13- <img class =" avatar" src =" {{ $activity -> user -> avatar } }" />
13+ <img class =" avatar" src =" {{ $activity -> user -> avatar_path } }" />
1414 @endif
1515 </div >
1616 <div class =" row__column row__column--middle" >{{ __ (' activities.' . $activity -> action ) } } <a href =" /{{ $activity -> entity_type } } s/{{ $activity -> entity_id } }" >#{{ $activity -> entity_id } } </a ></div >
Original file line number Diff line number Diff line change 100100 <li >
101101 <dropdown >
102102 <span slot =" button" >
103- <img src =" {{ Auth:: user ()-> avatar } }" class =" avatar mr-05" /> <i class =" fas fa-caret-down fa-sm" ></i >
103+ <img src =" {{ Auth:: user ()-> avatar_path } }" class =" avatar mr-05" /> <i class =" fas fa-caret-down fa-sm" ></i >
104104 </span >
105105 <ul slot =" menu" v-cloak >
106106 <li >
Original file line number Diff line number Diff line change 99 <div class =" box__section" >
1010 <div class =" input input--small" >
1111 <label >{{ __ (' fields.avatar' ) } } </label >
12- <img src =" {{ Auth:: user ()-> avatar } }" style =" width : 200px ; height : 200px ; border-radius : 5px ; object-fit : cover ;" />
12+ <img src =" {{ Auth:: user ()-> avatar_path } }" style =" width : 200px ; height : 200px ; border-radius : 5px ; object-fit : cover ;" />
1313 <input type =" file" name =" avatar" />
1414 @include (' partials.validation_error' , [' payload' => ' avatar' ] )
1515 </div >
You can’t perform that action at this time.
0 commit comments