title: Undefined variable with laravel and blade
body: <p>I know it's probably super simple, but I just started using laravel today, I've always been on codeigniter before. The problem I have is that laravel tells me that my variable is not defined ...</p>
  
  <p>Controller:</p>
  
  <pre><code>public function index()
  {
  
      $data['pageTitle']='Connexion';
  
      return view('login')-&gt;with($data);
  }
  </code></pre>
  
  <p>The line concerned in login.blade.php:</p>
  
  <pre><code>@extends('layout.header', $pageTitle)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>"Undefined variable: pageTitle (View: G:\Winginx\home\laravel\public_html\resources\views\login.blade.php)"
  </code></pre>
  
  <p>Thanks !</p>