Support the ongoing development of Laravel.io →
Configuration Requests Views
Last updated 2 years ago.
0
url(App::getLocale() . '/')

or

 url(Config::get('app.locale')  . '/')
Last updated 7 years ago.
0

https://laravel.com/docs/5.3/helpers#method-url

This will print current active url

echo url()->current(); 
Last updated 7 years ago.
0

thanks VarnishingJam

0

Sign in to participate in this thread!

Eventy

Your banner here too?

umairali umairali Joined 29 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.