How to get 200 response code from Laravel REST api

If you want to get 200 success message from your REST api built with Laravel, you can use the following code