title: How to map urls like urls 'day and name' in Laravel?
body: <p>I need to validate url's for my blog. I need allow only main url sites, for example:</p>
  
  <p><code>https://www.example.com/2019/02/11/post_title/</code></p>
  
  <p>How can I route it in Laravel?</p>
  
  <p>I want to do something like this:</p>
  
  <pre><code>Route::get('{slug}', function(){
      $post = \App\Post::where('slug', $slug)-&gt;firstOrFail(); 
  });
  </code></pre>