“URL en Laravel” Código de respuesta

Cómo obtener URL en Laravel

// Get the current URL without the query string...
echo url()->current();

// Get the current URL including the query string...
echo url()->full();

// Get the full URL for the previous request...
echo url()->previous();
Mohamad

URL en Laravel

use Illuminate\Support\Facades\URL;

echo URL::current();
NachooCh

Laravel obtenga una URL usando el nombre

$url = route('routeName');

//if there is a param:
$url = route('routeName', ['id' => 1]);

https://laravel.com/docs/5.1/helpers#method-route
Fragile Fish

Respuestas similares a “URL en Laravel”

Preguntas similares a “URL en Laravel”

Más respuestas relacionadas con “URL en Laravel” en PHP

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código