0

I need some suggestion and possibilities... I have a product whose back-end is on Laravel 5.0 and front-end is built on Angular 2 Due to some SEO issues I am rewriting the front-end in Laravel. Here I wanted to know that if I am creating new Laravel front-end app THEN how could I communicate/use/request my pre-built back-end APIs without using cURL for best I/O response time.

webwarrior
  • 87
  • 1
  • 9
  • Guzzle is the answer – online Thomas Feb 24 '17 at 13:36
  • Is that concluded that there is no option other than cURL/Guzzle ? – webwarrior Feb 24 '17 at 14:18
  • There are many ways, guzzle however is an easy way. If your question is the best approach than expect it to be flagged as opinion based by the community. – online Thomas Feb 24 '17 at 14:19
  • It may be easiest to just use blade and the bundled vue.js to call your API routes from the front end. Otherwise you could have separate API and front end controllers that pull the same data from a repository. – Samsquanch Feb 24 '17 at 14:32
  • actually this product is developed more than an year so converting all html and js from angular to laravel blade would be too long task. Else the suggestion from @Samsquanch is fine – webwarrior Feb 24 '17 at 14:55
  • will 'Sub-Domain Routing' works for me ? any idea – webwarrior Feb 24 '17 at 14:56

0 Answers0