Fix Eloquent error when trying to update a project