vendredi 7 octobre 2016

Laravel 5: remove default /?=value in url

I am using Laravel 5. In my Controller I am getting value from View like this method:

$params = array('' => Input::get("selected_category_id"));

then it showing in my log like this:

/api/zones/?=3

I try to modify which remove the single quote and equal symbol, like this:

$params = array(Input::get("selected_category_id"));

then it showing in my log like this:

/api/zones/?0=3

Can I set my url to be like this format:

/api/zones/3

thanks for any help!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire