title: data not passing into view
body: <p>I am trying to add forgot password function in laravel, when i click reset password link it shows error "Undefined variable: title (View:". I have defined title in controller but still its showing this error. seems that passed data is not availabe in the view but its availble in forgot view. </p>
  
  <p>my ResetPasswordController.php is</p>
  
  <pre><code>class ResetPasswordController extends Controller
  {
  
      public function __construct()
      {
  
      }
  
      public function reset(Request $request) {
          $data['title'] = "Reset";
  
          return view('auth.passwords.reset',$data);
      }  
  
  }
  </code></pre>
  
  <p>Forgot Password Works fine which has same @layout.app which has this 'title' variable, but Reset is not working. Following is code for route</p>
  
  <pre><code>Route::get('/password/forgot', [ 'as' =&gt; 'forgot', 'uses' =&gt; 'ForgotPasswordController@reset']);
  Route::get('/password/reset', [ 'as' =&gt; 'reset', 'uses' =&gt; 'ResetPasswordController@reset']);
  </code></pre>
  
  <p>and view is </p>
  
  <pre><code>&lt;html lang="{{ app()-&gt;getLocale() }}"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;!-- CSRF Token --&gt;
      &lt;meta name="csrf-token" content="{{ csrf_token() }}"&gt;
  
      &lt;title&gt;{{ $title }}&lt;/title&gt;
      &lt;!-- Scripts --&gt;
      &lt;script src="{{ asset('js/app.js') }}" defer&gt;&lt;/script&gt;
      &lt;!-- Fonts --&gt;
      &lt;link rel="dns-prefetch" href="https://fonts.gstatic.com"&gt;
      &lt;link href="https://fonts.googleapis.com/css?family=Raleway:300,400,600" rel="stylesheet" type="text/css"&gt;
      &lt;!-- Styles --&gt;
      &lt;link href="{{ asset('css/app.css') }}" rel="stylesheet"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="app"&gt;
          &lt;nav class="navbar navbar-expand-md navbar-light navbar-laravel"&gt;
              &lt;div class="container"&gt; 
                  &lt;a class="navbar-brand" href="{{ url('/') }}"&gt;
                      {{Config::get('constants.APP_TITLE')}}
                  &lt;/a&gt;
                  &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"&gt;
                      &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
                  &lt;/button&gt;
  
  
                  &lt;div class="collapse navbar-collapse" id="navbarSupportedContent"&gt;
                      &lt;!-- Left Side Of Navbar --&gt;
                      &lt;ul class="navbar-nav mr-auto"&gt;&lt;/ul&gt;
  
  
                      &lt;!-- Right Side Of Navbar --&gt;
                      &lt;ul class="navbar-nav ml-auto"&gt;
                          &lt;!-- Authentication Links --&gt;
                          @guest
                              &lt;li&gt;&lt;a class="nav-link" href="{{ route('login') }}"&gt;{{ __('Login') }}&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a class="nav-link" href="{{ route('register') }}"&gt;{{ __('Register') }}&lt;/a&gt;&lt;/li&gt;
                          @else
                              &lt;li&gt;&lt;a class="nav-link" href="{{ route('users.index') }}"&gt;Manage Users&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a class="nav-link" href="{{ route('roles.index') }}"&gt;Manage Role&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a class="nav-link" href="{{ route('products.index') }}"&gt;Manage Product&lt;/a&gt;&lt;/li&gt;
                              &lt;li class="nav-item dropdown"&gt;
                                  &lt;a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre&gt;
                                      {{ Auth::user()-&gt;name }} &lt;span class="caret"&gt;&lt;/span&gt;
                                  &lt;/a&gt;
  
  
                                  &lt;div class="dropdown-menu" aria-labelledby="navbarDropdown"&gt;
                                      &lt;a class="dropdown-item" href="{{ route('logout') }}"
                                         onclick="event.preventDefault();
                                                       document.getElementById('logout-form').submit();"&gt;
                                          {{ __('Logout') }}
                                      &lt;/a&gt;
  
  
                                      &lt;form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"&gt;
                                          @csrf
                                      &lt;/form&gt;
                                  &lt;/div&gt;
                              &lt;/li&gt;
                          @endguest
                      &lt;/ul&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/nav&gt;
  
  
          &lt;main class="py-4"&gt;
              &lt;div class="container"&gt;
              @yield('content')
              &lt;/div&gt;
          &lt;/main&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>this working in forgot password view but gives error in reset password view</p>
  
  <p>I have also tried </p>
  
  <pre><code>$title = "Reset";
      return view('auth.passwords.reset')-&gt;with('title', $title);
  </code></pre>