title: How to secure Admin Panel in PHP?
body: <p>I have a website which has two panels....</p>
  
  <p>1- For Normal user accessible through <code>domain.com</code><br>
  2- For Admins and Moderators accessible through <code>admin.domain.com</code></p>
  
  <p>When I (or anyone) access admin panel using <code>admin.domain.com</code>. He will be asked to enter username and password...<strong>BUT</strong><br></p>
  
  <p>How can I make this only visible to me (any way of telling server.. hey I am admin show me that page)
  One approach came in my mind is to use the route filter for static ips, like hey </p>
  
  <p><strong>Laravel</strong> my name is <code>192.116.45.15</code>... show me that page.</p>
  
  <p>Another approach is to separate my whole admin from server and use it directly from my localhost.</p>
  
  <p>Please tell some more approaches (by the way I use Laravel)</p>