Laravel Application Helper: abort_unless
…unction will abort execution of the application. 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...