Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Maxime | a748be45ae | |
Maxime | e75c29f6ac | |
Maxime | b2aebb75b0 | |
Maxime | 1aaccd43cb |
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2023 BlUESQUARE COMPUTING
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
|
@ -8,7 +8,7 @@ Ajouter à `composer.json` :
|
||||||
|
|
||||||
```
|
```
|
||||||
"require": {
|
"require": {
|
||||||
"bluesquare/laravel-mail-templates": "^1.2"
|
"bluesquare/laravel-mail-templates": "^1.4"
|
||||||
},
|
},
|
||||||
"repositories": [
|
"repositories": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"email"
|
"email"
|
||||||
],
|
],
|
||||||
"homepage": "https://git.bluesquare.io/bluesquare/laravel-mail-templates",
|
"homepage": "https://git.bluesquare.io/bluesquare/laravel-mail-templates",
|
||||||
"license": "proprietary",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Bluesquare",
|
"name": "Bluesquare",
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
"role": "Developers"
|
"role": "Developers"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "stable",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Bluesquare\\MailTemplates\\": "src/"
|
"Bluesquare\\MailTemplates\\": "src/"
|
||||||
|
|
|
@ -97,7 +97,9 @@ class MailTemplate implements \JsonSerializable
|
||||||
*/
|
*/
|
||||||
public function recipients(array $recipients): MailTemplate
|
public function recipients(array $recipients): MailTemplate
|
||||||
{
|
{
|
||||||
if (!empty($recipients)) {
|
$this->recipients = [];
|
||||||
|
|
||||||
|
if (! empty($recipients)) {
|
||||||
foreach ($recipients as $recipient) {
|
foreach ($recipients as $recipient) {
|
||||||
if (!empty($recipient[0]) && is_string($recipient[0])) {
|
if (!empty($recipient[0]) && is_string($recipient[0])) {
|
||||||
$data = [
|
$data = [
|
||||||
|
|
Loading…
Reference in New Issue