laravel host url code example
Example 1: get app url in laravel
URL::to('/');
Example 2: laravel use url
use Illuminate\Support\Facades\URL;
echo URL::current();
URL::to('/');
use Illuminate\Support\Facades\URL;
echo URL::current();