Laravel 5: Conditionally Throwing Exceptions With throw_unless
The throw_unless helper function is the logical counterpart to the throw_if helper function. If the provided $boolean value evaluates to false , a new instance of the provided exception will be created and thrown. Any parameters specified will be...