_stefanzweifel’s avatar_stefanzweifel’s Twitter Archive—№ 2,449

    1. 💡 Laravel's MessageBag component can be used for more than just collecting validation errors. Maybe your app checks if certain criterias are met when performing an action in your app. If they fail, you can put messages in your own MessageBag and use it further in your app.
  1. …in reply to @_stefanzweifel
    I'm sure there is a pattern out there that covers this exact use case: "business logic error messages". I just haven't discovered it yet. How do others deal with this?