@@ -11,36 +11,32 @@ An example source directory configuration might look like this:
1111
1212``` php
1313/*
14- |--------------------------------------------------------------------------
15- | Source Directories
16- |--------------------------------------------------------------------------
17- |
18- | Here you may configure the directories from which the image transformer
19- | is allowed to serve images. For security reasons, it is recommended
20- | to only allow directories which are already publicly accessible.
21- |
22- | Important: The public storage directory should be addressed directly via
23- | storage('app/public') instead of the public_path('storage') link.
24- |
25- */
26-
27- 'source_directories' => [
28- 'images' => public_path('images'),
29- 'storage' => storage_path('app/public/images'),
30- ],
31-
32- /*
33- |--------------------------------------------------------------------------
34- | Default Source Directory
35- |--------------------------------------------------------------------------
36- |
37- | Below you may configure the default source directory which is used when
38- | no specific path prefix is provided in the URL. This should be one of
39- | the keys from the source_directories array.
40- |
41- */
42-
43- 'default_source_directory' => env('IMAGE_TRANSFORM_DEFAULT_SOURCE_DIRECTORY', 'images'),
44-
45- // ...
14+ |--------------------------------------------------------------------------
15+ | Source Directories
16+ |--------------------------------------------------------------------------
17+ |
18+ | Here you may configure the directories from which the image transformer
19+ | is allowed to serve images. For security reasons, it is recommended
20+ | to only allow directories which are already publicly accessible.
21+ |
22+ | Important: The public storage directory should be addressed directly via
23+ | storage('app/public') instead of the public_path('storage') link.
24+ |
25+ */
26+ 'source_directories' => [
27+ 'images' => public_path('images'),
28+ 'storage' => storage_path('app/public/images'),
29+ ],
30+ /*
31+ |--------------------------------------------------------------------------
32+ | Default Source Directory
33+ |--------------------------------------------------------------------------
34+ |
35+ | Below you may configure the default source directory which is used when
36+ | no specific path prefix is provided in the URL. This should be one of
37+ | the keys from the source_directories array.
38+ |
39+ */
40+ 'default_source_directory' => env('IMAGE_TRANSFORM_DEFAULT_SOURCE_DIRECTORY', 'images'),
41+ // ...
4642```
0 commit comments