2
votes

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!

1
Welcome to Stackoverflow. Please refer stackoverflow.com/help/how-to-ask . And add more details of the issue that you are facing.Share the relevant code snippets you have tried so far. - Nagama Inamdar

1 Answers

1
votes

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();