mardi 10 octobre 2017

Laravel vuejs routes

What am trying to do is to build a laravel axios routes which have query parameters that is

a sample request looks like

 axios.get("/user-management/permissions?role=" + this.role)

so the aboe generates

localhost:8000/user-management/permissions?role=admin"//role value changes

Now am stuck at setting the actual routes in the laravel routes

I have the following

Route::get('permissions/{role}', "PermissionsController@PermissionRole");

THe above route is never executed.How do i go about setting up my laravel routes to have the query string parameter



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire