Polecalex
7 months ago

User data within Controller

Posted 7 months ago by Polecalex

Hello, I am trying to make an image upload controller, all data is input into the database however the author which is supposed to be the user's id however whatever I use I am not able to get the user's id. I have used the following: Auth::user()->id and $request->user()->id Is there any way to get the id from the currently logged in user while you're setting the data within the controller.

Please sign in or create an account to participate in this conversation.