March 2019

  • 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

  • Laravel secara default telah pun didatangkan dengan Vuejs. Anda boleh lihat dalam file package.json. Jadi untuk mula menggunakannya. Pertama sekali sila pastikan anda telah install npm yang membantu anda compile semua asset bagi menguruskan semua js dependencies. Berikut command install NPM. npm install Run command berikut untuk install Vuetify npm install vuetify –save package.json akan…

    Baca catatan

  • If you just like me, accidently renaming the migration and then later realise something goes wrong or having some kind of migration error that really makes you want to jump out shouting hardly, this is might be a solution for you. First just reset your migration. php artisan migrate: reset Then browse to your migration…

    Baca catatan