Skip to content

Commit

Permalink
Added view override support
Browse files Browse the repository at this point in the history
Relates to #652
  • Loading branch information
ssddanbrown committed Dec 31, 2017
1 parent 96b8c40 commit 6988a6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions config/view.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

$viewPaths = [realpath(base_path('resources/views'))];
if ($theme = env('APP_THEME', false)) {
array_unshift($viewPaths, base_path('themes/' . $theme));
}

return [

/*
Expand All @@ -13,9 +18,7 @@
|
*/

'paths' => [
realpath(base_path('resources/views')),
],
'paths' => $viewPaths,

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions themes/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore

0 comments on commit 6988a6f

Please sign in to comment.