File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ public function __invoke(ProfileAvatarRequest $request)
2323 $ user ->{$ request ::$ userAvatarAttribute } = $ path ;
2424 $ user ->save ();
2525
26- return $ this ->response ()->data ($ user ->fresh ());
26+
27+ $ user ->{ProfileAvatarRequest::$ userAvatarAttribute } = url ($ user ->{ProfileAvatarRequest::$ userAvatarAttribute });
28+
29+ return $ this ->response ()->data ($ user );
2730 }
2831}
Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ public function __invoke(RestifyRequest $request)
1515 $ user ->{ProfileAvatarRequest::$ userAvatarAttribute } = url ($ user ->{ProfileAvatarRequest::$ userAvatarAttribute });
1616 }
1717
18- return $ this ->response ()->data ($ request -> user () );
18+ return $ this ->response ()->data ($ user );
1919 }
2020}
You can’t perform that action at this time.
0 commit comments