I want to clear cache in lumen framework. I thought the command line is the same with Laravel command. I tried to run this:
php artisan clear:cache
but it giving error php artisan
Could not open input file: artisan.
Need help!
Advertisement
Answer
Lumen doesn’t have the artisan
command. From the Lumen Cache documentation head over to the Laravel Cache documentation where there’s a section Removing Items From The Cache. From that page:
You may clear the entire cache using the flush method:
Cache::flush();