Add compatibility with Laravel 5

Signed-off-by: tyloo <jbonva@gmail.com>