E
E
Eugene2019-08-01 13:20:14
Laravel
Eugene, 2019-08-01 13:20:14

Spatie laravel-newsletter. How to get an array of all users and audiences?

Good day. Can you please tell me how to get a list of all users in the audience using spatie laravel-newsletter and display them on a page with a name and email address?
In controller:

$getMembers = Newsletter::getMembers('testAudience');
dd($getMembers);

Where "testAudience" is the name of the audience.
dd prints out the given sheet's data array, inside of which there is another "members" array that contains the users. I need it, but I can't figure out how to get it.
The documentation says "optionally filtered by passing a second array of parameters". Here I sit and think what parameters to transfer that.
5d42bccfdd978941137330.png
https://github.com/spatie/laravel-newsletter

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question