Created
January 14, 2024 04:42
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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