VueTables

Using eloquent API

Create /Services/VueTables directory in Laravel root and copy EloquentVueTables.php and VueTablesInterface.php

$model = new Post;
$columns = ['id','title', 'body', 'author'];

return (new EloquentVueTables())->get($model, $columns);

Getting row data when using <v-server-table

  • add v-ref:vtemplateref to template
  • access via this.$refs.vtemplateref.data