title: Laravel - What should happen when API route doesn't found or match?
body: <p>I am creating an API in Laravel using Passport and using Postman for the testing of API. I am getting the output in JSON in Postman, so when I hit that route in Postman i.e. <a href="http://localhost:8000/api/login" rel="nofollow noreferrer">http://localhost:8000/api/login</a> it works fine. But, what if my URL is <a href="http://localhost:8000/api/log" rel="nofollow noreferrer">http://localhost:8000/api/log</a> which means a wrong URL then it's returning some error in HTML, here I want to show a message which may be 'Not Found' or something else in JSON format. HOW TO SHOW A PARTICULAR MESSAGE WHEN A METHOD OR ACTION IS NOT DEFINED IN CONTROLLER?</p>