Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117750998
HorizonServiceProvider.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
780 B
Referenced Files
None
Subscribers
None
HorizonServiceProvider.php
View Options
<?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
()
{
parent
::
boot
();
// Horizon::routeSmsNotificationsTo('15556667777');
// Horizon::routeMailNotificationsTo('example@example.com');
// Horizon::routeSlackNotificationsTo('slack-webhook-url', '#channel');
Horizon
::
night
();
}
protected
function
gate
()
{
Gate
::
define
(
'viewHorizon'
,
static
function
(
$user
=
null
)
{
return
true
;
}
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 2:45 AM (4 d, 20 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18822273
Default Alt Text
HorizonServiceProvider.php (780 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline