Forum

a css file for my sepcific div

So here is the thing, there is account section on left side of my page, I'm calling account from a file called forexample: account.blade.php . So what im doing here is that, I check if the user is logged in and if it is than I will be showing that section and if not I dont want the css to be used. So that way I limit the date user gets when an ordinary page is loaded. But I dont know how I can include a css for that file since I'm using another file for the account which doesnt have a <head>

nikona14
nikona14
  • 1 month ago
codiiv
Solution

That depends on how you load the "header" of your pages. You can include a conditional check within the header:

if(Auth::guest()) {

}

Should be enough