File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ That's it. You are now ready to start theming your applications!
42
42
43
43
## Defining themes
44
44
45
- Simple define your themes in the ` themes ` array in ` config/theme .php ` . The format for every theme is very simple:
45
+ Simple define your themes in the ` themes ` array in ` config/themes .php ` . The format for every theme is very simple:
46
46
47
47
``` php
48
48
// Select a name for your theme
@@ -59,7 +59,7 @@ Simple define your themes in the `themes` array in `config/theme.php`. The forma
59
59
60
60
// The path where the assets are stored
61
61
// Defaults to 'theme-name'
62
- // It is relative to /public
62
+ // It is relative to laravels public folder ( /public)
63
63
'asset-path' => 'path-to-assets', // defaults to: theme-name
64
64
65
65
// you can add your own custom keys and retrieve them with Theme::config('key')
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public function url($url){
24
24
25
25
$ fullUrl = (empty ($ this ->assetPath ) ? '' : '/ ' ).$ this ->assetPath .'/ ' .ltrim ($ url , '/ ' );
26
26
27
- if (file_exists ($ fullPath = base_path ( ' public ' ). $ fullUrl ))
27
+ if (file_exists ($ fullPath = public_path ( $ fullUrl) ))
28
28
return $ fullUrl ;
29
29
30
30
if ($ this ->getParent ())
You can’t perform that action at this time.
0 commit comments