Remington Box Posted May 24, 2012 Report Posted May 24, 2012 Is there a way to make an entire div appear when some one logs in? I am sure it can probably be done with php but I am not sure how. Quote
flyalaska Posted May 24, 2012 Report Posted May 24, 2012 <?php if(!Auth::LoggedIn()) { // Show these if they haven't logged in yet ?> Your Content Goes Here <?php } ?> Quote
freshJet Posted May 24, 2012 Report Posted May 24, 2012 Yes but he means WHEN they login not if they are logged in. I wondered this a long time ago to. Quote
SkyPilot Posted May 24, 2012 Report Posted May 24, 2012 If you look at the prior code, You will notice the '!' before Auth. The ! means NOT. So what I did was just remove that, So if the user is logged in, Do this. <?php if(Auth::LoggedIn()) { // Show these if they have logged in. ?> Your Content Goes Here <?php } ?> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.