Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'Illuminate\Log\Writer' not found #9

Open
powolnymarcel opened this issue Oct 12, 2018 · 1 comment
Open

Class 'Illuminate\Log\Writer' not found #9

powolnymarcel opened this issue Oct 12, 2018 · 1 comment
Assignees
Labels

Comments

@powolnymarcel
Copy link

In Laravel 5.7.9, on a fresh install, I'm getting an error:
Class 'Illuminate\Log\Writer' not found...

@chriskonnertz chriskonnertz self-assigned this Oct 13, 2018
@chriskonnertz
Copy link
Owner

chriskonnertz commented Oct 13, 2018

Hello,

thank you for creating this issue.

I assume the problem is this line: https://github.com/chriskonnertz/translation-factory/blob/master/src/ChrisKonnertz/TranslationFactory/Controllers/TranslationFileController.php#L81

public function update(Request $request, Log $log, string $hash, string $currentItemKey)

The full qualified name of the Log class Illuminate\Log\Writer (use Illuminate\Log\Writer as Log) which (I guess) cannot be found. Quick workround: Delete the $log parameter and the $log->info()call ( https://github.com/chriskonnertz/translation-factory/blob/master/src/ChrisKonnertz/TranslationFactory/Controllers/TranslationFileController.php#L109 ). Ofc, this will completely disable logging.

=> https://github.com/csun-metalab/laravel-multiple-logs/issues/1#issuecomment-382828025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants