How can I get the base url or home url of the Laravel application ?
To find the base URL of your website, go to the site's front page. What you see in the address bar on your site's front page is the base URL of your website.
url() Generates an absolute URL to the given path (code)Preserves any URL query string. {{ url('search') }} // http://www.example.com/search {{ url('search', ['qevo', 'laravel']) }} // http://www.example.com/search/qevo/laravel.
You can get the base url of the Laravel application by:
echo url('/');
or
{{ url('/') }}
Read more about Laravel helpers here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With