Laravel controller class that allows for output of API docs if the "accept" header is not set to json.