Write to Laravel Config files and maintain file integrity