Laravel 5: Conditionally Throwing Exceptions With throw_if
The throw_if function can be used to throw an exception if the supplied $boolean value evaluates to true . The supplied $parameters will be passed along to the exception's constructor.The signature of the throw_if function is: 1 function throw_if...