Fixed Laravel 4 related bugs