view.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | View Storage Paths
  6. |--------------------------------------------------------------------------
  7. |
  8. | Most templating systems load templates from disk. Here you may specify
  9. | an array of paths that should be checked for your views. Of course
  10. | the usual Laravel view path has already been registered for you.
  11. |
  12. */
  13. 'paths' => [
  14. resource_path('views'),
  15. ],
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Compiled View Path
  19. |--------------------------------------------------------------------------
  20. |
  21. | This option determines where all the compiled Blade templates will be
  22. | stored for your application. Typically, this is within the storage
  23. | directory. However, as usual, you are free to change this value.
  24. |
  25. */
  26. 'compiled' => env(
  27. 'VIEW_COMPILED_PATH',
  28. realpath(storage_path('framework/views'))
  29. ),
  30. /*
  31. |--------------------------------------------------------------------------
  32. | Check Compiled Views
  33. |--------------------------------------------------------------------------
  34. |
  35. | On every request the framework will check to see if a view has expired
  36. | to determine if it needs to be recompiled. If you are in production
  37. | and precompiling your views we can skip this check to save time.
  38. |
  39. */
  40. 'expires' => env('APP_ENV') !== 'production',
  41. ];