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
composer install,npm install, created an app key, etc).
-
Run
npm install stimulus -
Run
npm install babel-plugin-transform-class-properties --save-dev -
Create
.babelrcfile in your project root, and paste in the following content:
{