I am using laravel 5.0. I want to get base url of laravel page using jquery. I have tried the following function.
function getBaseURL () { return location
You can also use this:
You can call it any where in js files like "base_url"
"base_url"
It return upto your public path without slash at end
public
Ex: www.example.com
If you need to add slash at end you can use this..
It return upto your public path with slash at end
Ex: www.example.com/