Neon Tsunami

A blog about Laravel & Rails, written by Dwight Watson.

Automatically logging in your users when they come back to your app is a great way to keep them engaged. If you can prevent distracting them…

Sometimes it makes sense to want to fire an event from an element off to multiple controllers (if the element is a child of both controller…

I've recently finished converting all our legacy S3 storage code into leveraging Laravel's out-of-the-box Flysystem integration. I was able…

I’ve been using Heroku Pipelines for a bit on a new project which has been great at helping us take code from staging and push it to…

Following up from an earlier post that described filtering out Moment.js locales with Rails Webpacker, here’s how you can achieve the same…

Occasionally I run into an issue where my RSpec system tests start to fail because they’re unable to connect to the instance. It turns out…

Sometimes you might want to access the root element of your controller when using Stimulus - the element you have the attribute attached to…

There’s a slight pain point when loading Moment.js through Webpack in that it pulls in every single locale available, regardless of whether…

Webpack provides a feature known as externals which allows you to instruct it not to bundle any assets that you will provide externally at…

Despite pulling in just one method from Lodash I noticed that when I ran my bundle through Webpack Visualizer I was still importing the…