“Laravel Obtenha um URL usando o nome” Respostas de código

Como obter URL em 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

Laravel Use URL

use Illuminate\Support\Facades\URL;

echo URL::current();
NachooCh

Laravel Obtenha um URL usando o nome

$url = route('routeName');

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

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

Respostas semelhantes a “Laravel Obtenha um URL usando o nome”

Perguntas semelhantes a “Laravel Obtenha um URL usando o nome”

Mais respostas relacionadas para “Laravel Obtenha um URL usando o nome” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código