Make compatible with earlier versions of Laravel (#2)