Skip to content

Instantly share code, notes, and snippets.

@fhferreira
Created November 27, 2019 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fhferreira/f5e9f093c2073f11abc3d04327b3fea2 to your computer and use it in GitHub Desktop.
Save fhferreira/f5e9f093c2073f11abc3d04327b3fea2 to your computer and use it in GitHub Desktop.
Telescope Laravel
APP_ENV=local // changed from production to see if that worked
TELESCOPE_ENABLED=true
<?php
#...
'middleware' => [
'web',
//Authorize::class,
],
<?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