"Do I create two different laravel apps & host them on same server if that's the case ?"
Btw, i think the question is a bit out of the scope of the group, no?
http://lmgtfy.com/?q=live+search+with+Ajax+php+and+mysql
You know about JOSE? https://jose.readthedocs.io/en/latest/
so, for DI, routes and configuration you make it by yourself?
http://lmgtfy.com/?q=php+connect+to+postgre+database
Is a personal project or profresional project?
Please, if you wanna to share code can use something like pastebin.com or codeshare.io?
But are you developing an API or what? It's hard without more information
Maybe this can help? https://gist.github.com/xcommerce-gists/3440401
what frequency have the exchange? how frequently you update it?
http://lmgtfy.com/?s=d&q=ve+search+with+Ajax+php+and+mysql 😛
I think you need to return encrypted token from the backend, no?
This sounds like a microservice architecture, right?
And what hapens if the user agent dosen't match?
And why PHP if you can do with apache?
http://lmgtfy.com/?q=symfony+404+error
But xampp can be run in any OS right?
On what site? web server? local?
own structure = no framework?