-
-
Save fhferreira/f5e9f093c2073f11abc3d04327b3fea2 to your computer and use it in GitHub Desktop.
Telescope Laravel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP_ENV=local // changed from production to see if that worked | |
TELESCOPE_ENABLED=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#... | |
'middleware' => [ | |
'web', | |
//Authorize::class, | |
], | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#... | |
public function register() | |
{ | |
// Telescope::night(); | |
$this->hideSensitiveRequestDetails(); | |
// Telescope::filter(function (IncomingEntry $entry) { | |
// if ($this->app->isLocal()) { | |
// return true; | |
// } | |
// | |
// return $entry->isReportableException() || | |
// $entry->isFailedJob() || | |
// $entry->isScheduledTask() || | |
// $entry->hasMonitoredTag(); | |
// }); | |
} | |
protected function gate() | |
{ | |
Gate::define('viewTelescope', function ($user) { | |
return true; | |
}); | |
} | |
protected function authorization() | |
{ | |
$this->gate(); | |
Telescope::auth(function ($request) { | |
return true; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment