Laravel Api Request validation

Laravel Api Request validation to get 402 status code.

You can use the following code when you validate your REST Api.