Search code examples
phplaravelmodel-view-controllerviewlaravel-blade

Why Laravel 7 Generates Views in /storage/framework/views/, and how to stop creating them?


Laravel keeps generating views simultaneously with the views I am editing.

-storage
   -framework
       -views
           -0e4e52af70801a529019b11f786c45e07ca41a01.php
           -2c29d7cd1ffcb89dff8d91bbd62bedc5176cb6fc.php


Solution

  • You can do that but for that you have to edit Laravel's core files, it is not advisable.

    You can delete the views generated in storage folder by using following artisan command.

    php artisan view:clear