php artisan model:prune
Prune models that are no longer needed
Usage
model:prune [--model [MODEL]] [--except [EXCEPT]] [--chunk [CHUNK]] [--pretend]
Options
--model Class names of the models to be pruned
--except Class names of the models to be excluded from pruning
--chunk The number of models to retrieve per chunk of models to be deleted
--pretend Display the number of prunable records found instead of deleting them
-h, --help Display help for the given command. When no command is given display help for the <info>list</info> command
-q, --quiet Do not output any message
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-V, --version Display this application version
--ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
--env The environment the command should run under