view.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. if (env('APP_ENV') === 'local') {
  3. $view_path = env('VIEW_PATH');
  4. } else {
  5. $view_path = resource_path('views');
  6. }
  7. return [
  8. /*
  9. |--------------------------------------------------------------------------
  10. | View Storage Paths
  11. |--------------------------------------------------------------------------
  12. |
  13. | Most templating systems load templates from disk. Here you may specify
  14. | an array of paths that should be checked for your views. Of course
  15. | the usual Laravel view path has already been registered for you.
  16. |
  17. */
  18. 'paths' => [
  19. $view_path
  20. ],
  21. /*
  22. |--------------------------------------------------------------------------
  23. | Compiled View Path
  24. |--------------------------------------------------------------------------
  25. |
  26. | This option determines where all the compiled Blade templates will be
  27. | stored for your application. Typically, this is within the storage
  28. | directory. However, as usual, you are free to change this value.
  29. |
  30. */
  31. 'compiled' => realpath(storage_path('framework/views')),
  32. ];