devaslanphp / auto-translate

Automatically generate translation JSON files for your Laravel project
MIT License
61 stars 10 forks source link

Command for publish auto-translate config #1

Closed malejandrosr closed 1 year ago

malejandrosr commented 1 year ago

Hi.

I've installed the package in my REST API, then I've try to run the php artisan vendor:publish --tag=auto-translate command but the terminal indicates me that tag not found with this name.

Any solution for this?

Here is the error: imagen

heloufir commented 1 year ago

My bad, it's a documentation error, you need to execute php artisan vendor:publish --tag=auto-translate-config

I updated the docs.

malejandrosr commented 1 year ago

I have the same issue, the tag doesn't exist.

imagen

heloufir commented 1 year ago

If you execute php artisan vendor:publish --tag=auto-translate-config what is the results in the terminal?

malejandrosr commented 1 year ago

I get the same message from the first comment

Here:

imagen

heloufir commented 1 year ago

Just to be sure all is installed, please follow the below steps:

malejandrosr commented 1 year ago

I've follow all steps but it's the same issue, it didn't find the config tag.

heloufir commented 1 year ago

Weird, I got the same issue on a new project, but not my old one.

To get it working you need to add the provider into your config/app.php, like the following :

// config/app.php

//...

'providers' => [
      // ...

      \Devaslanphp\AutoTranslate\AutoTranslateProvider::class,
],

// ...

After that you can publish the config file.

malejandrosr commented 1 year ago

It worked for me, it's because I'm using the latest version of laravel 9.

Thank you.