A
A
Alexey Verkhovtsev2018-02-23 14:59:07
Laravel
Alexey Verkhovtsev, 2018-02-23 14:59:07

How to find out how many rows have changed when updating a laravel 5.6 table?

Hello everyone, is it possible to somehow find out some information when working with Laravel ORM, namely:
1. Has the table been updated, that is, the fact of changing at least one field in the table
2. How many fields have been changed
3. Which fields have been changed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kuznetsov, 2018-03-02
@dima9595

1. Has the table been updated, that is, the fact of changing at least one field in the table

Unfortunately, this is the only time I can give an answer. When the table is updated ( https://laravel.ru/docs/v5/eloquent#%D0%B8%D0%B7%D... ) the update_at field is updated. Accordingly, this way you can find out when the update was and whether it was at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question