view.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. storage_path(), //TODO: research if there are security risks.
  15. resource_path('views'),
  16. ],
  17. /*
  18. |--------------------------------------------------------------------------
  19. | Compiled View Path
  20. |--------------------------------------------------------------------------
  21. |
  22. | This option determines where all the compiled Blade templates will be
  23. | stored for your application. Typically, this is within the storage
  24. | directory. However, as usual, you are free to change this value.
  25. |
  26. */
  27. 'compiled' => env(
  28. 'VIEW_COMPILED_PATH',
  29. realpath(storage_path('framework/views'))
  30. ),
  31. ];