Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

theflynn's avatar

Add scripts on `php artisan view:cache` command

Hey!

Is it possible to do some things when we use the following command?

php artisan view:cache

I want to add scripts to replace some tags with other tags and more...

Thanks!

0 likes
2 replies
topvillas's avatar
Level 46

Create a custom command and call view:cache in it.

Please or to participate in this conversation.