title: Laravel-5.5: Session store not set on request
body: <p>I have simple controller:</p>
  
  <h3>Code InboxController:</h3>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use App\User;
  use App\Message;
  use Illuminate\Http\Request;
  use Illuminate\Support\Facades\Auth;
  
  class InboxController extends Controller
  {
      public function compose(Request $request)
      {
          if($request-&gt;isMethod('post'))
          {
  
              $rules = [
                  'to'      =&gt; 'required|email',
                  'from'    =&gt; 'required|email',
                  'subject' =&gt; 'required|max:10',
                  'message' =&gt; 'required'
              ];
  
              $this-&gt;validate($request, $rules);
  
          }
  
          $array = array('messages'=&gt;$this-&gt;user_messages(), 'count' =&gt; $this-&gt;count_messages());
  
          return view('compose', $array);
      }
  }
  </code></pre>
  
  <p>And if I want validate sended data in all routes give error:</p>
  
  <pre><code>Session store not set on request.
  </code></pre>
  
  <p>How I can set session on request in Laravel 5.5 for validate data?
  I must validate data in <code>compose</code> route</p>
  
  <pre><code>Routes
  Route::group(['prefix' =&gt; 'inbox', 'middleware' =&gt; 'auth'], function(){
      Route::get('/', ['uses' =&gt; 'InboxController@index',])-&gt;name('inbox');
      Route::match(['get', 'post'], '/message/{id?}', ['uses'=&gt;'InboxController@message'])-&gt;name('message');
      Route::match(['get', 'post'], '/compose', ['uses'=&gt;'InboxController@compose'])-&gt;name('compose');
  });
  </code></pre>
  
  <p>My middleware group code:</p>
  
  <pre><code>protected $middlewareGroups = [
      'web' =&gt; [
          \App\Http\Middleware\EncryptCookies::class,
          \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
          \Illuminate\Session\Middleware\StartSession::class,
          \Illuminate\Session\Middleware\AuthenticateSession::class,
          \Illuminate\View\Middleware\ShareErrorsFromSession::class,
          \App\Http\Middleware\VerifyCsrfToken::class,
          \Illuminate\Routing\Middleware\SubstituteBindings::class,
      ],
  </code></pre>