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.
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 […]
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 […]
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 […]