Loading repository data…
Loading repository data…
ratiw / repository
Sample project using Vuetable-2 in Laravel 5.4 and Laravel-Mix
cd into the directorycomposer install.env file and generate APP_KEY using cp .env.example .env && php artisan key:generatenpm installphp artisan serve or whatever appropriate in your machine setup.You should see something like this.

create laravel 5.4 project
laravel new vuetable-l54
go into the project directory and install node packages
npm install
create .env file by copying from .env.example
cp .env.example .env
generate APP_KEY
php artisan key:generate
replace welcome.blade.php with the version in the repo or just add component
install additional babel plugins
npm install babel-plugin-transform-runtime babel-preset-stage-2 babel-preset-es2015 --save-dev
install vuetable-2
npm install vuetable-2 --save-dev
install vuetable-2 dependencies
npm install accounting lodash moment vue-events --save-dev
create your Vue component in resources\assets\js\components
register the component in resources\assets\js\app.js
Vue.component('my-vuetable', require('./components/MyVuetable.vue'));
compile using Laravel-Mix by running
npm run dev