diff --git a/config/opcache.php b/config/opcache.php index 9f27377..3f66e55 100644 --- a/config/opcache.php +++ b/config/opcache.php @@ -14,6 +14,7 @@ base_path('storage'), base_path('vendor'), ], + 'notName' => [], 'exclude' => [ 'test', 'Test', diff --git a/src/OpcacheClass.php b/src/OpcacheClass.php index 337363b..8eb457f 100755 --- a/src/OpcacheClass.php +++ b/src/OpcacheClass.php @@ -60,6 +60,7 @@ public function compile($force = false) ->ignoreUnreadableDirs() ->notContains('#!/usr/bin/env php') ->exclude(config('opcache.exclude')) + ->notName(config('opcache.notName')) ->files() ->followLinks());