translate routes in custom plugin
in my custom plugin, i have the web.php file for the routes
i would like to translate people when i choose another language, for example en: people it: persone
i've tried
but i get
because Laravel is trying to resolve the __() function before the service container is fully initialized, causing the error 'Target class [translator] does not exist.'
any solution or method for this?
thanks
i would like to translate people when i choose another language, for example en: people it: persone
i've tried
but i get
because Laravel is trying to resolve the __() function before the service container is fully initialized, causing the error 'Target class [translator] does not exist.'
any solution or method for this?
thanks