chriskonnertz / translation-factory

Tool for the Laravel framework that helps to create translations
MIT License
38 stars 8 forks source link

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

Open powolnymarcel opened 5 years ago

powolnymarcel commented 5 years ago

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

chriskonnertz commented 5 years ago

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