Reputation: 4172
Following the documentation, I tried to run php artisan lang:publish
but it generates an empty lang folder. I would expect there will be at least messages.php
file for English. Can somebody tell me why it is empty? I run the command in docker terminal but it is empty in docker container and also in computer disk.
Upvotes: 2
Views: 851
Reputation: 409
Seems like you have some problems with the mount synchronization between your Docker volume and your file system.
Try to run the command either inside the Docker container (docker compose exec <app_name> php artisan lang:publish
) and outside it (just plain php artisan lang:publish
) and see what happens.
Anyway, its better to provide some additional context in such questions. Like run command, it’s output, and contents of storage/logs/laravel.log
(maybe it contains some exceptions).
Upvotes: 1
Reputation: 2222
do you have write permission to the lang
folder?
also, please check if the
vendor/laravel/framework/src/Illuminate/Translation/lang
has content in it.
not a solution but a workaround: you can actually manually copy files from
vendor/laravel/framework/src/Illuminate/Translation/lang
to your
resources/lang
folder.
Upvotes: 0