Prune or Mass Prune Models - New in Laravel

In this video, we will look into the new artisan command introduced in Laravel . It’s ’php artisan model:prune’. With the help of this command, we can delete the old and stale data. Just run one command from Laravel’s artisan, and all the old records will be gone. You can also add this command in the scheduler so that this will run daily at some specific time that suits you. Social Media Links: Let’s be friends Follow On Facebook Laravel 8 - Collection, Higher Order Collection and Lazy Collection Tech stack: Laravel PHP #laravel #php #laraveltip #laratips
Back to Top