-
-
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.
- Loading branch information
Showing
25 changed files
with
1,495 additions
and
30 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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace App\Providers; | ||
|
||
use Illuminate\Support\Facades\Gate; | ||
use Laravel\Horizon\Horizon; | ||
use Laravel\Horizon\HorizonApplicationServiceProvider; | ||
|
||
class HorizonServiceProvider extends HorizonApplicationServiceProvider | ||
{ | ||
/** | ||
* Bootstrap any application services. | ||
*/ | ||
public function boot(): void | ||
{ | ||
parent::boot(); | ||
|
||
// Horizon::routeSmsNotificationsTo('15556667777'); | ||
// Horizon::routeMailNotificationsTo('[email protected]'); | ||
// Horizon::routeSlackNotificationsTo('slack-webhook-url', '#channel'); | ||
} | ||
|
||
/** | ||
* Register the Horizon gate. | ||
* | ||
* This gate determines who can access Horizon in non-local environments. | ||
*/ | ||
protected function gate(): void | ||
{ | ||
Gate::define('viewHorizon', function ($user) { | ||
return in_array($user->email, [ | ||
// | ||
]); | ||
}); | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -46,11 +46,11 @@ | |
'notifiable' => \Spatie\BackupServer\Notifications\Notifiable::class, | ||
|
||
'mail' => [ | ||
'to' => '[email protected]', | ||
'to' => '[email protected]', | ||
|
||
'from' => [ | ||
'address' => env('MAIL_FROM_ADDRESS', '[email protected]'), | ||
'name' => env('MAIL_FROM_NAME', 'Example'), | ||
'address' => env('MAIL_FROM_ADDRESS', '[email protected]'), | ||
'name' => env('MAIL_FROM_NAME', 'Moox Backup Server'), | ||
], | ||
], | ||
|
||
|
Oops, something went wrong.