When you are working with a one-to-many relationship, it is sometimes the case that a particular instance on the “many” side of the relationship is flagged as unique and important to your system in some way. It can be really handy to be able to access that unique instance in a first class way from your models. This post is going to cover how you can do that without introducing any new concepts into your application.
PHP
Migrating Pinkary from Laravel Forge to Laravel Cloud
A practical engineering write-up on moving Pinkary from Laravel Forge to Laravel Cloud. It walks through the real migration issues they hit, including SQLite to MySQL differences, query rewrites, and storage assumptions in the codebase. Read more…