sufi Posted March 25, 2018 Share Posted March 25, 2018 Title says it all. How do I get system url in a variable inside a module I am developing? Link to comment Share on other sites More sharing options...
Vivek Nair Posted March 25, 2018 Share Posted March 25, 2018 Hello, You can always the system URL from the following table. Please use the following query : $url = Capsule::table('tblconfiguration')->where('setting','='SystemURL')->first(); $system_url = $url->value; Hope this helps. Cheers 1 Link to comment Share on other sites More sharing options...
sufi Posted March 25, 2018 Author Share Posted March 25, 2018 9 hours ago, Vivek Nair said: Hello, You can always the system URL from the following table. Please use the following query : $url = Capsule::table('tblconfiguration')->where('setting','='SystemURL')->first(); $system_url = $url->value; Hope this helps. Cheers Thanks for this. I have used global $CONFIG to get the system url. Link to comment Share on other sites More sharing options...
Recommended Posts