Fix telescope not availible on prod
Some checks failed
Push image to registry / build-image (push) Has been cancelled
Some checks failed
Push image to registry / build-image (push) Has been cancelled
This commit is contained in:
@@ -14,7 +14,7 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function register(): void
|
public function register(): void
|
||||||
{
|
{
|
||||||
// Telescope::night();
|
Telescope::night();
|
||||||
|
|
||||||
$this->hideSensitiveRequestDetails();
|
$this->hideSensitiveRequestDetails();
|
||||||
|
|
||||||
@@ -55,10 +55,8 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
|
|||||||
*/
|
*/
|
||||||
protected function gate(): void
|
protected function gate(): void
|
||||||
{
|
{
|
||||||
Gate::define('viewTelescope', function ($user) {
|
Gate::define('viewTelescope', function () {
|
||||||
return in_array($user->email, [
|
return true;
|
||||||
//
|
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ return [
|
|||||||
|
|
||||||
'middleware' => [
|
'middleware' => [
|
||||||
'web',
|
'web',
|
||||||
Authorize::class,
|
// Authorize::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user