Home > other >  How to change particular user's status in database using laravel API?
How to change particular user's status in database using laravel API?

Time:02-10

I have one database in that I have one table named as dsa_payments so now there is one column name as "status" which tells me that payment is done or not? Now I want to make an API for that I had already made controllers and models. I am confused about how to make function for that and in that I also have to check that if the status code is already 1 than that person should not able to do payment and give that person error message that "you are processing an old request". And if code is 0 or 2 then only person can do payment so for that can anyone help me to make function for that !

CodePudding user response:

  •  Tags:  
  • Related