Cocker Setup
This commit is contained in:
parent
8fdaa0ba1d
commit
8c11130b5d
191 changed files with 8152 additions and 18186 deletions
36
app/Providers/HorizonServiceProvider.php
Normal file
36
app/Providers/HorizonServiceProvider.php
Normal file
|
|
@ -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('example@example.com');
|
||||
// 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 = null) {
|
||||
return in_array(optional($user)->email, [
|
||||
//
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -58,7 +58,7 @@ class RouteServiceProvider extends ServiceProvider
|
|||
/** @var DomainContext $context */
|
||||
$context = app(DomainContext::class);
|
||||
$this->loadSharedRoutes();
|
||||
|
||||
\Log::info('loadDomainAwareRoutes', ['context' => $context]);
|
||||
match ($context->type) {
|
||||
'main' => $this->loadDomainRoutes('main', 'main.php'),
|
||||
'main-shop' => [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue