This commit is contained in:
romankko2 committed 2023-04-06 14:49:18 +02:00
commit 4e21f44065
2 files changed
+14 -2

No files matched your search

+13 -1
View File
@@ -22,6 +22,18 @@ class HorizonServiceProvider extends HorizonApplicationServiceProvider
// Horizon::night(); // Horizon::night();
} }
/**
* Configure the Horizon authorization services.
*
* @return void
*/
protected function authorization()
{
Horizon::auth(function () {
return true;
});
}
/** /**
* Register the Horizon gate. * Register the Horizon gate.
* *
@@ -30,7 +42,7 @@ class HorizonServiceProvider extends HorizonApplicationServiceProvider
protected function gate(): void protected function gate(): void
{ {
Gate::define('viewHorizon', function ($user) { Gate::define('viewHorizon', function ($user) {
dd($user); return true;
return in_array($user->email, [ return in_array($user->email, [
// //
]); ]);
+1 -1
View File
@@ -28,7 +28,7 @@ return [
| |
*/ */
'path' => env('HORIZON_PATH', 'horizon'), 'path' => env('HORIZON_PATH', 'be/horizon'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------