Tech Notes: Laravel hasOneThrough / belongsToThrough confusion
How I found out that I wanted belongsToThrough, not hasOneThrough in Laravel Eloquent, and why it doesn't exist.
Creativity, curiosity, and code
How I found out that I wanted belongsToThrough, not hasOneThrough in Laravel Eloquent, and why it doesn't exist.
A quick tip for testing Laravel Livewire components with object/model properties.
So I wanted to have a play with Laravel Breeze and Jetstream. In doing so I noticed that the instructions for Breeze (and for Laravel in general) suggest a Docker-based Laravel Sail install by default. I had not looked into Docker despite a lot of hype around it recently in my tech world. So I […]
For experienced Laravel developers, version 8 and Jetstream are really exciting. But as someone who wants to introduce people to Laravel as a way to build cool stuff, I really feel like there are some issues here.
I’ve been updating some old Laravel apps and I just came across this issue with updating from 5.6 to 5.7. It’s noted in the upgrade docs (see “Template Theme”) but easy to miss. I know I’ll come across this again, so it’s worth noting here for the future. If you have published your mail templates […]
A WHAT NOW?!!! Note: If this has been done before, just tell me and point me in the right direction please? Thanks! TL;DR I made a Laravel package and Statamic v3 addon that automatically download JS and CSS package files from CDN’s and cache and serve them locally. Go straight to the README’s if you’re […]
Note to self: this is why you should, and how you can customise form validation error messages in Laravel - even when using form requests
I’m SURE I must have done this before. Like…so many times. But this felt new today and is definitely worth remembering. When you’re using forms in Laravel, you sometimes want a “cancel” or “back” button or link that takes you to where you were before. And Laravel provides a handy url() helper that gets a […]
How to specify a specific policy/class when authorizing using the controller helper function in Laravel.
I'm using Test Driven Development (TDD) for the first (and second) time on a couple of side projects. Here are some further reflections on the process and issues I've come across.