Joe Lennon

Co-founder and CTO at Workvivo. Likes to code with React, React Native and Laravel.

Homestead issues with NFS on Ubuntu

If you're trying to run Homestead on an Ubuntu Linux host you might get a complaint that your machine does not support NFS when trying to run vagrant up for the first time. To fix this, you need to install the nfs-common and nfs-kernel-server packages on your host system. $ sudo...

Tags: laravel, homestead, nfs, ubuntu

Laravel Tests, SQLite and “no such column” errors

I ran into a frustrating issue today while trying to run PHPUnit tests on a Laravel project I’m working on. Essentially, I was getting PDOException messages saying things like no such column. Looking through the stack trace, the issue seemed to have something to do with the Illu...

Tags: php, laravel, sqlite, testing, migrations

Using Laravel 5.4 Request Sanitization Middleware

One of the new features introduced in Laravel 5.4 is a pair of middleware for sanitising data in requests. These middleware are: TrimStrings ConvertEmptyStringsToNull Both of these middleware are very useful. TrimStrings will trim whitespace surrounding any request input values...

Tags: laravel, sanitization, middleware

Using BootForms with Laravel 5.4

Adam Wathan’s BootForms makes it painless to work with Bootstrap forms in your Laravel Blade templates. If you’ve been using BootForms and just upgraded to Laravel 5.4, you might have run into some issues with your views. There’s an open pull request which fixes this issue, so ho...

Tags: php, laravel, bootforms, blade

The real value gap in the music business

2015 was a landmark year for the music business. Global music revenues up 3.2%, the first increase in well over a decade. Digital sales surpassed physical sales for the first time in history. Streaming now accounts for 43% of digital music revenue. 900 million people used ad-su...

Tags: music, streaming, music business