mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
Merge branch 'main' of https://bitbucket.org/studiotem/jandl-taskmanager-app
This commit is contained in:
commit
4e21f44065
2 files changed
+14
-2
No files matched your search
@@ -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, [
|
||||||
//
|
//
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'path' => env('HORIZON_PATH', 'horizon'),
|
'path' => env('HORIZON_PATH', 'be/horizon'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in new issue
Block a user