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

Laravel

There are 2 posts tagged Laravel (this is page 1 of 1).

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