Dwight Watson's blog

A blog about Laravel & Rails by Dwight Watson;
developer of Roomies.com, myRent.co.nz & StudentVIP.com.au.

Follow me on Twitter, or GitHub.

Stripe webhooks can be a little bit annoying to verify. In Laravel I've generally done it using the method of a FormRequest. The…

A number of apps I've worked on have used HTTP request geolocation to show content that's relevant to the user. Not in a creepy way (where…

Rails has a simple syntax for rendering a collection of partials and caching them all in one go. Under the hood it'll try and fetch all the…

I've just recently started working with Laravel Livewire, now that it ships as an option with the new Laravel Jetstream. Livewire is a…

I've known about Amazon S3 Transfer Acceleration for a while but haven't had a good use-case. In brief, this feature allows you to speed up…

April 22, 2020

Introducing nameable

I've been itching to give Laravel's new custom casting feature a go since it landed in 7.0. Cleaning up some of the and attribute…

A number of projects I've worked on have required custom admin panels that are custom enough that I can't get away with using Laravel Nova…

Recently I discovered that the default logout functionality in Laravel actually logs the user out from all their devices. This is because…

GitHub recently announced a new release of GitHub Actions which allows you to automate workflows in response to events that occur in your…

Route model binding is a great feature to automatically fetch an Eloquent model when it's injected into a controller method - saving you…