[Vuejs]-Post and get on Index controller laravel

0👍

It is because you are not passing parameter with the request await axios.get('/comentarios'). It should look like

await axios.get('/comentarios', this.bibleID).then( (response) => {
            console.log('get', response.data)
            this.comentarios = response.data;
        })

Inyour controller you are trying to retrieve bibleID $bibleID = $request->bibleId; which is coming empty.

Leave a comment