A blog about Laravel & Rails, written by Dwight Watson.
Logout current device only with Laravel 6
Recently I discovered that the default logout functionality in Laravel actually logs the user out from all their devices. This is because…
Testing Laravel with PHPUnit and GitHub Actions
GitHub recently announced a new release of GitHub Actions which allows you to automate workflows in response to events that occur in your…
Invalid text representation with Laravel route model binding
Route model binding is a great feature to automatically fetch an Eloquent model when it's injected into a controller method - saving you…
I've written previously about monkey-patching the ActiveStorage representations controller in order to proxy content so that it could be…
Using MapKit JS with Rails
Recently we migrated a website to use Apple's MapKit JS service - one that is currently in beta, but comes with plenty of daily quota for…
Installing PHPRedis with PECL/Homebrew
I ran into trouble installing the PHP Redis extension installed on my Mac. Homebrew no longer installs PHP extensions and instead suggests…
Don't use View::composer() with wildcard
This is incredibily obvious in hindsight, but I recently realised a mistake I had been making when trying to share data across all the views…
Configuring Heroku Postgres with Laravel
Today Laravel shipped v5.8.15 which comes with a great improvement for configuring your database connections - especially on platforms like…
Dynamically import polyfills with Laravel Mix
For the new Roomies.com we've decided to try and adopt the native date input. At the moment this would support 90.17% of our users in the…
Laravel on Heroku - with Nginx & gzip
When setting up a PHP app on Heroku the default configuration is to use Apache. It's simple to get going and customise through the file…