Blog
Notes from the terminal.
Technical articles, tutorials, and thoughts on Laravel, Vue, AI tooling, and the craft of software engineering.
The new WebTechNick site is live
After a good stretch of nights and weekends, the new WebTechNick is finally up. If you've been here before, it'll feel different. The site is cleaner, it moves nicely on a phone, ...
Fetching a random database entry with cakePHP
Using AppModel to write our wrapper findRandom function allows us to retrieve a random record from any model we choose. php class AppModel extends Model { function findRan...
The Power of CakePHP aliases
While working on many projects over the years I've come to the conclusion people don't take advantage of CakePHP's alias attribute nearly enough. As such I've decided to go a bit ...
HABTM Search By Multiple Tags in CakePHP
The Problem A client came to me with an interesting request. They wanted the ability to search a songs database based on tags that defined that song. A similar problem would ...