title: Using vinkla/hashids package in Laravel 5.2 to obsfucate id's in URL's
body: <p>I have installed and configured the latest version (2.3.0) of vinkla/hashids on laravel 5.2.</p>
  
  <p>I'm unsure how to implement its functionality on my URL routes.</p>
  
  <p>I want to obsfucate all id attributes which are displayed in my URL routes.</p>
  
  <p>For example- <a href="http://localhost:8000/profile/3/edit" rel="nofollow">http://localhost:8000/profile/3/edit</a> should become <a href="http://localhost:8000/profile/xyz/edit" rel="nofollow">http://localhost:8000/profile/xyz/edit</a>.</p>
  
  <p>I have tried overriding the following method on  Illuminate\Database\Eloquent\Model.php by adding it to App\Profile.php as so-</p>
  
  <pre><code>public function getRouteKey()
  {
  dd('getRouteKey method');
      return Hashids::encode($id);
  }
  </code></pre>
  
  <p>My dd is not displaying so I'm not overriding it correctly.</p>
  
  <p>Please can you advise how I should implement this functionality correctly?</p>
  
  <p>Thanks</p>