I have an older version (v4) of Mailcoach, which is a spatie package for sending emails. My Mailcoach membership has expired, which leaves me with one option: I am forced to host mailcoach v4 in a private git repository, and install mailcoach into my laravel app by pointing to my own (private) mailcoach git repo.
I was finally able to install mailcoach from my own private git repository, using a config like this in composer.json file:
"require": {
"myusername/spatie-laravel-mailcoach": "^4.15.7",
},
"repositories": [
{
"type": "package",
"package": {
"name": "myusername/spatie-laravel-mailcoach",
"version": "4.15.7",
"source": {
"url": "https://github.com/myusername/spatie-laravel-mailcoach.git",
"type": "git",
"reference": "main"
}
}
}
]
The next step is to run the php artisan vendor:publish command to publish the config file and prepare the DB by publishing migrations. Unfortunately, both commands below don't work and show a "No publishable resources for tag" message.
https://mailcoach.app/docs/self-hosted/v4/installation/in-an-existing-laravel-app#content-publish-the-config-file
$ php artisan vendor:publish --provider="Spatie\Mailcoach\MailcoachServiceProvider" --tag="mailcoach-config"
INFO No publishable resources for tag [mailcoach-config].
https://mailcoach.app/docs/self-hosted/v4/installation/in-an-existing-laravel-app#content-prepare-the-database
$ php artisan vendor:publish --provider="Spatie\Mailcoach\MailcoachServiceProvider" --tag="mailcoach-migrations"
INFO No publishable resources for tag [mailcoach-migrations].
I suspect that this has something to do with the fact that I am using a private git repository like https://github.com/myusername/spatie-laravel-mailcoach.git and the command is not recognizing the namespace.
What am I missing?