dimanche 24 janvier 2021

Laravel - get only 1 line by creation

I'm learning with laravel and I'm stuck on one thing, I have a table with id (Auto Increment) then I have levy (int), our_balance (int), created_at (timestamp) and updated_at (timestamp) there, I always need to only the last line gotten and from it I need our_balance to read it from the new calculation. So I need to get the data from the line that was created last.




Aucun commentaire:

Enregistrer un commentaire