I want that all cached data in my Laravel web site be clear and recreate after every crud operation(adding, edit, update and delete) on posts table. how can I do that?
You can call php artisan command like this after CRUD operations:
Or you can use Cache facade:
For more information Laravel Cache
Answered By – Iftikhor
Answer Checked By – David Goodson (BugsFixing Volunteer)