Laravel ViewErrorBag Public API: put
The put method is used to add a new MessageBag instance to the ViewErrorBag instance with a specified key. You can also dynamically set a MessageBag instance by assigning it to a property in ViewErrorBag. To remove or replace all messages in a MessageBag instance, you can use the put method with a new MessageBag instance.