support laravel >= 4.0