This gist was made for Laravel 5.7, although it should work for any version. It also assumes you have a Laravel site set up and configured on a basic level (you ran
npm install, created an app key, etc).
npm install stimulus
npm install babel-plugin-transform-class-properties --save-dev
.babelrcfile in your project root, and paste in the following content: