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