Fix Readme
This commit is contained in:
parent
1aeb520b06
commit
38c40c48ac
|
@ -6,7 +6,7 @@ This package creates routes for the popular Medialibrary Package from Spatie ().
|
|||
|
||||
In RegisterMediaCollections, you have the following methods available:
|
||||
|
||||
You can set a filename by default for the file. This accepts the associated Model, as well as the original filename. You should return the new name of the file with the extension (e.g. disc.jpg).
|
||||
You can set a filename by default for the file. This accepts the associated Model, as well as the original filename. You should return the new name of the file without the extension (e.g. disc).
|
||||
|
||||
```
|
||||
forceFileName(fn ($model, $path) => Str::slug($path))
|
||||
|
|
Loading…
Reference in New Issue