Message-ID: <1321323004.10721.1711725663081.JavaMail.confluence@docs1> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_10720_177376599.1711725663080" ------=_Part_10720_177376599.1711725663080 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html url

url

Description


Core\Url ur= l()


Using our url() function will give you access= to our core url class, which is used to handle primarily the creation of l= inks and sending users from one page to another.

Examples


=20
<?php

// Create a URL
echo url()->make('/foo'); // Converts to http://localhost/foo

// Sends a user to another route
url()->send('/foo');
=20

Methods


Method Description Usage Returns

make(string $r= oute [, array $params =3D []] )

 


$route

URL rout= e.


$params

(optional) Params can be passed, w= hich will be converted
into GET requests. 

 

Creates a new link.

=20
// Create a =
URL
echo url()->make('/foo'); // Converts to http://localhost/foo
 
// Create a URL
echo url()->make('/foo', ['hello' =3D> 'world']); // Converts to http=
://localhost/foo?hello=3Dworld
=20

Prepared link.

send(string $r= oute [, array $params =3D [], string $message =3D null])

 


$route

Provide = the segment number
of the URL. 


$params

(optional) Params can be passed, w= hich will be converted
into GET requests. 


$message

(optional) Message to display to = the user once they have reached
the next page. 

Sends the user to the link.

=

 

=20
// Sends a u=
ser to another route
url()->send('/foo');
 
// Sends a user to another route with GET params
url()->send('/foo', ['hello' =3D> 'world']);
 
// Send a user to another route with a message
url()->send('/foo', ['hello' =3D> 'world'], 'Successfully Updated!');
 
// Send a user to another route with a message and without additional GET p=
arams
url()->send('/foo', 'Successfully Updated!');
=20
null
------=_Part_10720_177376599.1711725663080--