vuex

  • As mention in Vue Router documentation, we can simply use this.$router.push(‘router-name’) to get to the other component. For some reason, i have some issues to use it in my store.js. One of the solution i found here, where i need to exports all declaration inside app.js to other instance, then import it in my store.js.…

    Baca catatan

  • Example 1 a) Controller  When using get() method, you can provide constraint that will return collection in array.  If no object. This will return empty array [] public function search($search) { $group = Group::query($search) ->where(‘name’, ‘=’, $search) ->get(); return response()->json($group, 200); } b) Thus, in Store.js (Vuex). We can do like this. actions : {…

    Baca catatan