Getting different Type of URL in laravel

Like every framework site laravel have helper to get different type of URL.

You can get details of the URL from following link of Laravel :

In my case i use laravel 5.0 that why the URL is like this, for your case just change the bold portion version to get your. if you version is 5.7 then the link will be

Here is some Sample :

Home URL : 

In blade template :
{{ url('/') }}

in PHP file :url('/');

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.