Question: I am new in Laravel. I include Header using @include('header'). but I want to hide profile menu when user is not register. How can I do ?
I use this to get data from table directly in blade.php

```
$array = App\Table::Select(users)->get(); 

```

Answer: 
You can use `auth` facade for this.

`@auth // The user is authenticated... @endauth`

`@guest // The user is not authenticated... @endguest`
Simple use this

```
   if(Auth::user())
      include('header')
   endif

```