$categories = Category::select(DB::raw('categories.*, count(*) as `aggregate`'))
->join('pictures', 'categories.id', '=', 'pictures.category_id')
->groupBy('category_id')
->orderBy('aggregate', 'desc')
->paginate(10);
import Vue from 'vue'
import autosizeTextarea from 'vue-autosize-textarea'
new Vue({
el: '#app',
methods: {
onResized () {
console.log('resized!')
}
},
components: {
'autosize-textarea': autosizeTextarea //!!!
}
})
jQuery("при клике сюда").on("click", function(e) {
e.preventDefault()
jQuery("кликается данная форма").trigger('click');
});