Skip to content

Commit

Permalink
Clarify that class is resolved using service container (#3548)
Browse files Browse the repository at this point in the history
  • Loading branch information
bram-pkg authored Feb 20, 2024
1 parent 6027965 commit 1d56eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced-usage/using-a-custom-directory-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ media

Putting files inside their own folders guarantees that files with the same name can be added without any problems.

To override this default folder structure, a class that conforms to the `PathGenerator`-interface can be specified as the `path_generator` in the config file.
To override this default folder structure, a class that conforms to the `PathGenerator`-interface can be specified as the `path_generator` in the config file. The given class will be loaded through the Laravel [Service Container](https://laravel.com/docs/container), so feel free to type-hint any dependencies in the constructor.

Let's take a look at the interface:

Expand Down

0 comments on commit 1d56eac

Please sign in to comment.