Right now the following approaches support auto completion for translation:
__(…)
trans(…)
app('translator')->get(…)
when injecting \Illuminate\Translation\Translator directly, ->get(…) also works
The one thing which doesn't work is when injecting \Illuminate\Contracts\Translation\Translator, in this case it doesn't recognize it when calling ->get(…)
Right now the following approaches support auto completion for translation:
__(…)
trans(…)
app('translator')->get(…)
\Illuminate\Translation\Translator
directly,->get(…)
also worksThe one thing which doesn't work is when injecting
\Illuminate\Contracts\Translation\Translator
, in this case it doesn't recognize it when calling->get(…)
Thanks