title: Call to a member function first() on array laravel 5.4
body: <p>I am very to new to laravel 5.4 and don't know about much about the blade template. </p>
  
  <p>The issue is I am passing the array to the views and trying to get the first index of array element through the provided <code>first()</code> function of blade template but it's giving me error <code>Call to a member function first() on array</code></p>
  
  <p>Here is my controller code</p>
  
  <pre><code> public function authenticate(Request $request )
   {               
      if (Auth::attempt(['email' =&gt; $request-&gt;input('email'), 'password' =&gt; 
          $request-&gt;input('password'), 'Status' =&gt; 0])) 
          {
              // Authentication passed...
              return redirect()-&gt;intended('Users');
          }
      else
      {
          $json=array('email'=&gt;'You cant leave Email field empty');         
          return  View::make('Auth/login')-&gt;with('error',($json));           
      }
   }
  </code></pre>
  
  <p>Here is my View Code</p>
  
  <pre><code>  @if($errors-&gt;any())         
         {{ $errors-&gt;first('email') }}
    @endif
  </code></pre>
  
  <p>I am looking for the solution which can exactly suit my needs. If am doing something wrong please correct me.
  Thanks...</p>