laravel use 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();
Example 3: laravel signed route
use Illuminate\Support\Facades\URL;
return URL::signedRoute('unsubscribe', ['user' => 1]);