samedi 28 janvier 2017

How to send by post method in laravel by means of a button an array?

I have on blade this

    @foreach($list as $item)
        <tr class="columnsArray">
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td>$</td>
            <td>$</td>
            <td></td>
            <td></td>
            <td></td>

        </tr>

        @endforeach
    </table>

   <div class="botonEnviar"><button type="button" class="btn btn-success">ENVIAR</button></div>

The foreach is to show but I want to send that same list when I click the button,method "post"

the route is:

$app->post('notification','AtlanticControllerChangePrice@notification');

And the function is:

    function notification(Request $request){
    return $request;
}

Return request because for test



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire