title: How to detect current resource route in laravel?
body: <p>I have a resource route like this : </p>
  
  <pre><code>Route::resource('posts', 'PostController')
  </code></pre>
  
  <p>I want to know current route is one of routes from this resource or not .</p>