title: How to get unique slug to same post-title for other time too?
body: <p>I have tried the codes as follows.</p>
  
  <pre><code> $post-&gt;title = $request-&gt;title;
          $post-&gt;body = $request-&gt;body;
          $post-&gt;slug  = str_slug($post-&gt;title,'%');
  </code></pre>
  
  <p>The code was running great but now I have the post with same title so its throwing error as it is set to unique in db. 
  Is there any way I can get another slug?</p>