title: Is there a way to separate frontend and backend on different servers
body: <p>The project is based on Laravel 5.6.</p>
  
  <p>I have a dilema with two options, but I'm not sure if the first one it can be possible to be applied.</p>
  
  <ol>
  <li>For client side I have simple contact form which insert new record into database on submit. On the other hand I will have backend (interface) for reading, deleting these record and a lot of other things, but I need to be on different server with different domain name.
  Both shares the same code and database. I think about this by security reason.</li>
  </ol>
  
  <p>Example: 
  domain1.com referers to the contact form, but
  domain2.com referers to the dashboard</p>
  
  <p>Is that possible?</p>
  
  <ol start="2">
  <li>Or if point 1 is not possible - just single php file with that form to push the data into database. And on the other server will be the Laravel backend part.</li>
  </ol>
  
  <p>I know that option 2 it can be perfect, but I'm interesting if is possible to separate two different parts which shares the same code based in Laravel or another kind of application.</p>
  
  <p>Thank you in advance!</p>