[Vuejs]-Implement VueJS with Laravel Blade?

-1👍

Can you take a look at this https://scotch.io/tutorials/implement-a-favoriting-feature-using-laravel-and-vue-js, might be helpful.

It explains in details how you setup the Model in a proper way, the computed, and methods, also the steps are just too easy to follow.

I noticed that you have:

mounted(){
    //blank
}

You could add some functionality like:

mounted() {
this.isFavorited = this.isFavorite ? true : false;
}

This will help handle the toggle part

Leave a comment