Whenever you modify the record, the first query. $ rebot = Rebots :: find (1); $ rebot-> status = 0; $ rebot-> save ();
Use the MODEL can directly modify it? Such as:
$ rebot = new Rebots (); $ rebot-> id = 1; $ rebot-> status = 0; $ rebot-> save ();