Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 501 Bytes

Laravel - URL generator.md

File metadata and controls

32 lines (19 loc) · 501 Bytes

Contenido

Intro

La funcion URL() te permite generar URLs para la aplicacion.

	echo url("/posts/{$post->id}");
	
	// http://example.com/posts/1

Obtener datos de la URL actual

	// 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();