appstract / laravel-opcache

Laravel Package for OPcache
MIT License
1.34k stars 119 forks source link

[Feature-Request] Customize paths #32

Closed ricardovf closed 7 years ago

ricardovf commented 7 years ago

Would be good to be able to add custom paths to the paths list on the optimize. I have other folders with code that do not live in /app. Why not optimize all files? Like all files in the vendor folder?

    // Get files in these paths
    $files = File::allFiles([
        base_path('app'),
        base_path('bootstrap'),
        base_path('storage/framework/views'),
        base_path('routes'),
        base_path('vendor/laravel/framework'),
    ]);
ovanschie commented 7 years ago

Optimizing all the files in vendor does not work and gives errors, that's why. If you want to make a pr so you can add custom paths, then that is welcome.