Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eliekhazzaka's avatar

Get method Laravel and API

hey guys, what should be written in the controller to get the profile image of user using API and Laravel

0 likes
2 replies
automica's avatar

@eliekhazzaka providing you are storing the path to the profile image on your user model, then

$image = Auth::user()->profile_image;
1 like

Please or to participate in this conversation.