there seems to be something wrong with this class: 'Spatie\Newsletter\Facades\Newsletter'
use Spatie\Newsletter\Facades\Newsletter;
class WelcomeController {
public function store($req) {
Newsletter::subscribe('rincewind@discworld.com'); # <- throw error;
# Error: Class 'Spatie\Newsletter\Facades\Newsletter' not found
}
}
this way work:
use Spatie\Newsletter\NewsletterFacade as Newsletter;
class WelcomeController {
public function store($req) {
Newsletter::subscribe('rincewind@discworld.com');
}
}
I also got the following error:
TypeError: Return value of Spatie\Newsletter\NewsletterList::getId() must be of the type string, null returned
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
I was not able to use the lib following the steps described in the documentation, there are some problems that I would like to report:
First, it is not possible to publish the config file with the command:
so i created the file manually...
there seems to be something wrong with this class: 'Spatie\Newsletter\Facades\Newsletter'
this way work:
I also got the following error:
TypeError: Return value of Spatie\Newsletter\NewsletterList::getId() must be of the type string, null returned
with this envs:
this work:
version: