Laravel 5: Conditionally Throwing HTTP Exceptions With abort_if
…4 $ message = ' ' , 5 array $ headers = [ ] 6 ) ;The following example assumes that some $user object exists with the property admin . The example will check to make sure that the admin property is true . If not, the code will abort with a 401...