Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117751487
HorizonServiceProvider.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
800 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.
*
* @return void
*/
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'
,
function
(
$user
=
null
)
{
return
true
;
}
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 3:11 AM (1 d, 6 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5f/f4/9259a80855b5a59056038e8e61a1
Default Alt Text
HorizonServiceProvider.php (800 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline