skip to Main Content

pass data from vue.js to laravel 9

Problem: internal server error while passing data from vue.js to laravel using axios I created fresh laravel project and installed breeze with vue (php artisan breeze:install vue). Then I created One menu controller and rendered menu.vue like this : public…

VIEW QUESTION

Can't get json with axios.get and headers

I am trying to get the joke from https://icanhazdadjoke.com/. This is the code I used const getDadJoke = async () => { const res = await axios.get('https://icanhazdadjoke.com/', {headers: {Accept: 'application/json'}}) console.log(res.data.joke) } getDadJoke() I expected to get the joke but…

VIEW QUESTION
Back To Top
Search