Fix Readme

This commit is contained in:
philipp lang 2024-01-03 00:09:55 +01:00
parent 1aeb520b06
commit 38c40c48ac
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ This package creates routes for the popular Medialibrary Package from Spatie ().
In RegisterMediaCollections, you have the following methods available: 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)) forceFileName(fn ($model, $path) => Str::slug($path))