I am building a system using the Laravel framework (I have little knowledge in fw) and I need to get the id of the user who logged in to do the queries based on the userid.
Ex: UserUm = > lists all products registered with the user id.
How can I do this?