get url in php test artisan code example Example: laravel use url use Illuminate\Support\Facades\URL; echo URL::current();