jeudi 30 mars 2017

Laravel 5.4 - Use Controller Route in javascript function

I have a table (datatables) and I have an edit icon and I want to call a route with the parameter.

My function is currently is

function editItem(id)
    {
        //alert(id);
    }

What I want to do is to call

UsersController@editItem

and also pass the id to the controller.

I am a little stuck!



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2nERbyE
via IFTTT

Aucun commentaire:

Enregistrer un commentaire