Astrotomic / laravel-translatable

A Laravel package for multilingual models

Home Page:https://docs.astrotomic.info/laravel-translatable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Publishing to config directory for Laravel 11

Milosfamous opened this issue · comments

Issue description

  • This command doesn't work for Laravel version 11
    • php artisan vendor:publish ‐‐tag=translatable

How to solve this issue?

  • You should change above command to:
    • php artisan vendor:publish --provider "Astrotomic\Translatable\TranslatableServiceProvider"

Hi!

Where did you get this and what OS did you try it on?

It looks like your command has a broken dash symbol.
Your dash: ‐‐ - (ord('‐') = 226)
Dash copied from docs -- (ord('-') = 45)

Publishing by tag still works well php artisan vendor:publish --tag=translatable
image

Hi,
In your package page on GitHub a found this link: How to Add Multi-Language Models to Laravel QuickAdminPanel
In step 4 you can find how to publish config.php but in your package this artisan command not mentioned.
My Laravel 11 app runs on a VPS with Ubuntu 22.04 OS.

Ok, I got it. Thank you.

Looks like just a typo in the article :)

Both publishing options are still valid - by tag and by provider. It does not need to be changed.

Even browser can find regular dash in this command ))
image

Thank you very much for your attention 🙏.

Thanks for solving that one @Oleksandr-Moik ! 🙏