mercredi 3 août 2016

Laravel 5 : How to get path name from URL?

In laravel , I come across a situation where I need to get the path name from url.

e.g.

http://ift.tt/2auLFF2

In above example I want to fetch "timeslot" in my controller

public function login()
{
$url = URL::current();
echo "timeslot"; //I want to print only "timeslot" here.
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire