Skip to content

Method LaravelZero\Framework\Application::originalFileName does not exist. #486

Answered by owenvoke
ousid asked this question in Q&A
Discussion options

You must be logged in to vote

Have you added Spatie\MediaLibrary\MediaLibraryServiceProvider::class to your service providers in config/app.php? 🤔

My guess is that the config hasn't been loaded because the service provider isn't loaded, and that means that media-library.file_namer is null, so this line is probably just resolving app() as the actual application.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ousid
Comment options

@owenvoke
Comment options

@ousid
Comment options

Answer selected by ousid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants