[V5] The new @loggedIn ? #1841
-
Hi ! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
You can use the @if(auth.user)
<p> User is logged in </p>
@endif |
Beta Was this translation helpful? Give feedback.
-
@thetutlage Also auth.user is only accessible when I add the auth middleware, The doc looks unclear and we should always suppose that thing and that thing and add this .... whyyyyy ? |
Beta Was this translation helpful? Give feedback.
-
EDIT : Don't know if it was because i added silentauth or not, but not i can access auth object in view, finally... Maybe it was a cache issue from the server ? I tried to restart and didnt change, but 6 hours later, finally works ! |
Beta Was this translation helpful? Give feedback.
You can use the
auth
object directly.