Neon Tsunami

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

One of my favourite query scopes in Laravel is which will order the query by the latest models based on the column. In addition you can…

Not sure why, but I couldn’t get to give me an absolute URL with an ActiveStorage attachment, even when playing with all the options…

With ActiveStorage it’s pretty simple to test your controllers and check that file uploads are working the way you expect. Just configure…

I’ve been using the edge version of Rails on a new project so we can leverage ActiveStorage and the direct image uploading functionality it…

Like an amateur I’ve been importing all my assets one-by-one when using Webpacker to get them all listed in the app manifest. It’s annoying…

I’ve been a big fan of forced resourcefulness – that is to ensure your controllers map to a single resource only and have exposed at most…

I’ve just run into this issue using Rails Webpacker on Heroku in production. Everything was worked fine locally but once it was deployed the…

I spent a couple of hours over the weekend re-writing the authentication controllers that run StudentVIP . They were written a long time…

I’ve been running a new Rails project up on the branch while having a play with the new ActiveStorage module to see if it will be a good…

Often when working on your front-end with Laravel Mix you’re going to want to import or reference some third-party code you’ve brought in…