title: Laravel Ressource, check specific user
body: <p>I'm using a ressource controller and it is possible to edit a user like this: users/edit/8 (8 is the id).  </p>
  
  <p>How can I check that only user 8 can edit his account? </p>
  
  <p>Because another user could set any ID in the URL and edit any account. </p>
  
  <p>I could use:</p>
  
  <pre><code>if (!Auth::user()-&gt;id === $id) { 
     //throw exception ... 
  }
  </code></pre>
  
  <p>But that is not the point of laravel "dont repeat yourself".</p>
  
  <p>Should I use ressource controllers for user related stuff (like account settings etc) ?
  Or just for admin related stuff?</p>