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
Do you mean you want the base url of your laravel app available anywhere your javascript?
You can include this in your template.blade.php:
And than access that var anywhere in your javascript:
console.log(APP_URL);