mercredi 12 juillet 2017

Needs to update request base URL in Laravel

My application is on a domain e.g test.com which redirects to test.net/test by using URL::forceRootUrl() function. which ever url you hit it goes to test.net/test and on every hit test.net/test request goes to test.com because server is on test.com. i am using nayjest(laravel package) for grids and its using Request::instance() to make urls and it gives test.com and i need test.net/test. In that scenario url's are made by test.com which is wrong. so i needed to update request instance base url so i could work in my scenario.

i am using laravel 5.1.

Any help will be much appreciated .



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ugQuQA
via IFTTT

Aucun commentaire:

Enregistrer un commentaire