Mitchell McKenna
Mitchell McKenna
Tech, programming and personal interests.
  • Twitter
  • Github
Skip to content

Git Hooks: Check Code Quality & Unit Tests on Every Commit

Automatically lint your code, check unit tests, and run static analysers every time you run “git commit”. It’s a developer’s local CI pipeline.

in Programming | January 17, 2023 | Comment

Is Your Code Up To Sniff?

PHP Code Standards Following coding standards in PHP is now easier than ever. Let’s go over the benefits of following a coding standard, how to enforce it, and look at how modern tooling and new features in IDE’s like PHPStorm makes it nicer than ever before. Why Follow a Coding Standard? Stop Wasting TimeIf you’ve […]

in Programming | April 8, 2020 | 2 Webmentions | Comment

Laravel API Resources + JSON API Spec

API Resources are a new feature in Laravel 5.5 to convert objects to JSON responses. Here’s how to write API Resources that follow JSON API spec […]

in Laravel, Programming | September 21, 2017 | 2 Comments

Reduce Validation Bloat in Laravel Controllers

In Laravel or Lumen, I’ve often noticed that a significant portion of my controllers can be validation calls. To solve this, I moved validation rules to a config file. By doing so, you can often simplify validation to just a single line of code […]

in Laravel, Programming | August 4, 2017 | Comment
 

Loading Comments...