comply with laravel version 4.1.26