Skip to content
Advertisement

Show record of logged in user in laravel

I want to show a list of complaint of a logged-in user how would I write if else in a blade.

JavaScript

and this my index function, it also works for admin to show all complaints of all users. But I want the complaints for a specific user who logged in. I mean the user can see all of his complaints

JavaScript

How would I handle this!

Advertisement

Answer

Change the Index method like this:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement