Eloquentize logo
Eloquentize

Advanced

Legacy / Existing Project

It is likely that your project already exists at the time of installing the eloquentize package.

It is possible to count data based on "created_at" events retrospectively (for updated_at, it is strongly discouraged because only the last modification will be taken into account, for deleted_at it works, for your custom events you have to determine the relevance).

php artisan eloquentize:models-count-legacy

This command will search for the oldest record among your models and perform the counting day by day from that point on, using the column created_at, so you will be able to generate creation graphs since the launch of your application.

Starting from a specific day

The first argument of the models-count-legacy commands is the day you want to start, if not specified, the command will search for the oldest created model of your database and start from this day.

About the author

© Eloquentize 2024