generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .env file and update dependencies
Delete ExampleTest.php Skip debugging functions on Mac in ArchTest.php Update dependencies in composer.json Add mail, slack, and discord methods to Notifier facade Update notifier.php configuration Update body creation in NotifierSlack.php Update body creation in NotifierDiscord.php
- Loading branch information
1 parent
24c9eea
commit d1e06ec
Showing
15 changed files
with
310 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
NOTIFIER_DISCORD_WEBHOOK= | ||
NOTIFIER_DISCORD_AVATAR_URL= | ||
NOTIFIER_DISCORD_USERNAME= | ||
|
||
NOTIFIER_SLACK_WEBHOOK= | ||
|
||
NOTIFIER_MAIL_MAILER=smtp | ||
NOTIFIER_MAIL_HOST=mailpit | ||
NOTIFIER_MAIL_PORT=1025 | ||
NOTIFIER_MAIL_USERNAME= | ||
NOTIFIER_MAIL_PASSWORD= | ||
NOTIFIER_MAIL_ENCRYPTION= | ||
NOTIFIER_MAIL_FROM_ADDRESS= | ||
NOTIFIER_MAIL_FROM_NAME= | ||
NOTIFIER_MAIL_TO_ADDRESS= | ||
NOTIFIER_MAIL_TO_NAME= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ phpstan.neon | |
testbench.yaml | ||
vendor | ||
node_modules | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
<?php | ||
|
||
// config for Kiwilan/Notifier | ||
return [ | ||
'discord' => [ | ||
'webhook' => env('NOTIFIER_DISCORD_WEBHOOK', null), | ||
'username' => env('NOTIFIER_DISCORD_USERNAME', null), | ||
'avatar_url' => env('NOTIFIER_DISCORD_AVATAR_URL', null), | ||
], | ||
|
||
'slack' => [ | ||
'webhook' => env('NOTIFIER_SLACK_WEBHOOK', null), | ||
], | ||
|
||
'mail' => [ | ||
'mailer' => env('NOTIFIER_MAIL_MAILER', 'smtp'), | ||
'host' => env('NOTIFIER_MAIL_HOST', 'mailpit'), | ||
'port' => env('NOTIFIER_MAIL_PORT', 1025), | ||
'username' => env('NOTIFIER_MAIL_USERNAME', null), | ||
'password' => env('NOTIFIER_MAIL_PASSWORD', null), | ||
'encryption' => env('NOTIFIER_MAIL_ENCRYPTION', 'tls'), | ||
'from_address' => env('NOTIFIER_MAIL_FROM_ADDRESS', null), | ||
'from_name' => env('NOTIFIER_MAIL_FROM_NAME', null), | ||
'to_address' => env('NOTIFIER_MAIL_TO_ADDRESS', null), | ||
'to_name' => env('NOTIFIER_MAIL_TO_NAME', null), | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Kiwilan\Notifier\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
/** | ||
* @see \Kiwilan\Notifier\Journal | ||
*/ | ||
class Journal extends Facade | ||
{ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Kiwilan\Notifier\Journal::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.