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

Programming

There are 3 posts filed in Programming (this is page 1 of 1).

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 | 1 Webmention | 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