Chris
banner
christalks.dev
Chris
@christalks.dev
Hi, I'm Chris - a full stack web developer near London. I work for a motorsports PR agency and as a result, enjoy anything with an engine too!

Blog: christalks.dev
A quick little post I wrote about effective locale based routing with Laravel. It's easier than it might seem! 👍🏻

christalks.dev/post/setting...

#laravel #php #tutorial
Setting up locale based routing in Laravel with middleware
Laravel is an excellent framework that supports multilingual functionality out of the box - but it doesn't go as far as setting up the routing for you. Here's how you can achieve it with simple routin...
christalks.dev
January 27, 2025 at 6:45 AM
Reposted by Chris
ok, let's break it down.

at the core of atproto is the data. it lives own your own computer (or someone hosts it for you). think of it as a hard drive with JSON files on it

data is structured (i.e. has a type), and can references other records on other peoples' computer with a URI like a hyperlink
November 3, 2024 at 1:51 AM
PHP attributes are pretty trick and have much more capability than first meets the eye...

christalks.dev/post/using-p...

#php #laravel #tutorial
Using PHP Attributes to enhance the capabilities of Enums
PHP Attributes are a powerful feature of PHP >= 8. In this example, I provide a brief introduction to using reflection to enhance your Enums with PHP attributes
christalks.dev
November 24, 2024 at 8:03 AM
The other day I wrote a post on using the state machine pattern in PHP. Check it out here - christalks.dev/post/another...
Another pattern - lets talk about state machines
The state machine pattern isn't something you often hear about, but its critical to almost every piece of technology you experience in every day life
christalks.dev
November 22, 2024 at 11:47 AM