Skip to content

Instantly share code, notes, and snippets.

View ekrist1's full-sized avatar

ekrist1

View GitHub Profile
@ekrist1
ekrist1 / Instruction
Created October 1, 2017 14:00
Laravel Vue Bulma pagination component
Add eventHub to your app.js file:
Vue.prototype.$eventHub = new Vue();
In your controller:
Generate a new resource-class (pagination metadata is included in the response)
https://laravel.com/docs/5.5/eloquent-resources
How to use the child-component in your vue-file:
@ekrist1
ekrist1 / bladefile.blade.php
Created August 29, 2017 18:04
Reusable dropdown button Vuejs component for Laravel and Bulma.
<buttondropdown>
<span slot="name">mer</span>
<a href="#" class="dropdown-item">
Dropdown item
</a>
<a class="dropdown-item">
Other dropdown item
</a>
<a href="#" class="dropdown-item is-active">
Active dropdown item