mstdn.social: About · Status · Profiles directory · Privacy policy · Terms of service
Mastodon: About · Get the app · Keyboard shortcuts · View source code · v4.4.1
I have a model with a JSON column that defaults to an empty array, but when using factories in tests, the default value isn't applied. Here's how I solved it. #php #laravel https://masteringlaravel.io/daily/2025-08-19-why-isnt-my-json-column-default-value-working-in-tests
WRONG: -TIL: You can modify your `localKey` on a #laravel relation with php functions. Very useful when having usernames in mixed cases to check for a relation (see the `localKey` parameter).-
RIGHT: This does not work, but it would be a nice feature ;)
Shipped tonight:
- a RSS feed (with dates in French … whoops!), using @spatie #Laravel feed package.
- a first basic version of the Nintendo Direct archives (2025 only for now): https://nintendodirect.sunappu.net/archives : it’s the 2nd URL, so this update also comes with a small navigation header.
I’ve also started to pimp the CMS, using #InertiaJS and #Vue. Good experience so far, but I have more to do. Inertia payload is heavy (Inertia + Vue = 70 KB gzipped), that’s why I only use it for the CMS.
1/2
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.
Create accountLogin