set url for views in laravel 6 code example Example: laravel use url use Illuminate\Support\Facades\URL; echo URL::current();