Fixing Laravel Generator error