Closed asifu5057 closed 2 years ago
Hi,
it seems that there is a problem with your domain.php
config file: within that config array there must be present the domains
entry and it must be an array.
It seems that you have a scalar value for that entry instead of an array
Let me know if this helps
Cheers
Giacomo
Thank you but currently domain.php
file is empty, what should I add there? there is no instructions?
Have you ran the vendor:publish
command as reported in the instructions?
Yes I have ran that command.
which provider I should publish after running the command? can you please guide me?
Ok... I think that something happened when you ran that command, maybe you already had a domain.php
file in your config dir.
You can try to rerun that command with the option --force
: it should overwrite the current config file.
Alternatively, you get the right config file in the vendor folder:
vendor/gecche/laravel-multidomain/src/config/domain.php
simply copy it in the config dir.
Then I think it should work
Giacomo
Yes there was some issue in running the command, I rerun and publish all files by pressing the 0
, all providers successfully published and now its working fine. Thank you @gecche
Hello,
I am using Laravel 8.12 and gecche/laravel-multidomain 4.0
When I run command
php artisan domain:add mysite.com
it throw below error messagecannot use a scalar value as an array at vendor/gecche/laravel-multidomain/src/Foundation/Console/AddDomainCommand.php:135
Please help how can I fix this issue?
Thanks, Asif