Skip to content

Instantly share code, notes, and snippets.

@swaters86
Created January 14, 2024 04:42
Show Gist options
  • Save swaters86/afcea41de8c4cc8459635f4ce41d6233 to your computer and use it in GitHub Desktop.
Save swaters86/afcea41de8c4cc8459635f4ce41d6233 to your computer and use it in GitHub Desktop.
Blade Template check if logged in user id is equal to the user id stored in a record column called user_id
<div>
@if(auth()->id() != $myrecord->user_id)
<p>Display stuff for logged in user</p>
@endif
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment