title: Can't Access Auth::check in my view
body: <p>In my application I have used laravel Auth Class for Authentication. I am not able to use</p>
  
  <pre><code>  Auth::check or Auth::user()-&gt;name 
  </code></pre>
  
  <p>or any method of Auth in my view. but I can access it in controller. works fine on my local server but on hosting server it's not working. Is there problem with configuration?  I stuck with these for 2 days. I don't know what to do.</p>
  
  <p>My portion of view is below. It works everything fine on local server.</p>
  
  <pre><code>   &lt;div class="ribbon"&gt;
              &lt;nav&gt;
                  @if(Auth::check())
                  &lt;ul class="profile-nav"&gt;
                      &lt;li class="active"&gt;&lt;a href="#" title="Dashboard"&gt;Hi, {{Auth::user()-&gt;name}}&lt;/a&gt;&lt;/li&gt;                                                                                    
                  &lt;/ul&gt;
                  &lt;ul class="profile-nav"&gt;                                                
                      &lt;li class="active"&gt;&lt;a href="/dashboard" title="Dashboard"&gt;Dashboard&lt;/a&gt;&lt;/li&gt;                    
                  &lt;/ul&gt;   
                  &lt;ul class="profile-nav"&gt;
                      &lt;li class="active"&gt;&lt;a href="/logout" title="Logout"&gt;Logout&lt;/a&gt;&lt;/li&gt;                         
                  &lt;/ul&gt;                       
                  @else
                  &lt;ul&gt;&lt;li class="active"&gt;&lt;a href="#" title="Dashboard"&gt;Hi, Guest&lt;/a&gt;&lt;/li&gt;                                         
                  &lt;/ul&gt;
                  &lt;ul&gt;                                        
                      &lt;li class="active"&gt;&lt;a href="#" id="showlogin" title="Login"&gt;Login&lt;/a&gt;&lt;/li&gt;              
  
                  &lt;/ul&gt;
                  &lt;ul&gt;                
                      &lt;li class="active"&gt;&lt;a href="#" id="showreg" title="Settings"&gt;Register&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
                  @endif
  
              &lt;/nav&gt;
          &lt;/div&gt;
  </code></pre>