title: laravel 5.4 - how to prevent one's role from being able to access the property of another role?
body: <p>I have an inventory app that has three different roles, namely operator, admin, and super admin.</p>
  
  <p>the problem is when I enter with one of the roles, I can access the menu belongs to another role by writing the link from the menu in the browser's link bar.</p>
  
  <p><strong>example</strong></p>
  
  <p>in the admin page there is a backup and restore menu, <code>link: /admin/backupAndRestore</code></p>
  
  <p>then I log in as an operator</p>
  
  <p>in the operator page there is only the item borrowing and return item menu, but if I write a link of the admin backup and restore menu in the browser's link bar like <code>localhost: 8000/admin/backupAndRestore</code> I can access the page.</p>
  
  <p>I want to make it like a user who has logged in can not access the register or login page and redirected to the home page, what should I do?</p>