title: How can i get resource store route laravel
body: <p>My Add form code</p>
  
  <pre><code>&lt;form method="post" name="m_form" action="{{url('post')}}"&gt;
      &lt;input type="hidden" name="_method" value="POST"&gt;
      &lt;input type="hidden" name="_token" value="zL9O2D3H70fkSrt9vziwbkf2bHBqi6O6NKk1QgQK"&gt;
      &lt;input type="text" required="" name="name" id="name" class="form-control m-input" &gt;
      &lt;input type="submit" name="submit" value="submit"&gt;
  &lt;form&gt;
  </code></pre>
  
  <p>My Route</p>
  
  <pre><code>Route::resource('post', 'PostController');
  </code></pre>
  
  <p>Middleware</p>
  
  <pre><code>public function handle($request, Closure $next)
  {
      $nextRequest = $next($request);
      dd($request-&gt;route()-&gt;getAction());
  }
  </code></pre>
  
  <p>Now in Middleware <b>$request->route()->getAction()</b> is null</p>
  
  <p>Now I want controller name and method name dynamically here all other route working fine but store route not found</p>
  
  <p>Can you please guide me where I can make mistake?</p>
  
  <p>Thanks.</p>