title: How to validation slug in laravel 5.4.24
body: <p>How to create unique slug in laravel and validate them ?</p>
  
  <p>Here is my validation code:</p>
  
  <pre><code>$this-&gt;validate($request,[
          'company_name' =&gt; 'required|unique:admin_users,company_name,slug|max:191',
      ]);
  </code></pre>
  
  <p>Here is my slug code:</p>
  
  <pre><code>$db_filed-&gt;company_name = str_slug($request-&gt;company_name, '-');
  </code></pre>
  
  <p>Thanks.</p>