12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
-
- namespace App\Providers;
-
- use Laravel\Telescope\Telescope;
- use Illuminate\Support\Facades\Gate;
- use Laravel\Telescope\IncomingEntry;
- use Laravel\Telescope\TelescopeApplicationServiceProvider;
-
- class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
- {
-
-
- public function register()
- {
-
-
-
-
- Telescope::filter(function (IncomingEntry $entry) {
- if ($this->app->isLocal()) {
- return true;
- }
-
- return $entry->isReportableException() ||
- $entry->isFailedJob() ||
- $entry->isScheduledTask() ||
- $entry->hasMonitoredTag();
- });
- }
-
-
-
- protected function hideSensitiveRequestDetails()
- {
- if ($this->app->isLocal()) {
- return;
- }
-
- Telescope::hideRequestParameters(['_token']);
-
- Telescope::hideRequestHeaders([
- 'cookie',
- 'x-csrf-token',
- 'x-xsrf-token',
- ]);
- }
-
-
-
- protected function gate()
- {
-
-
-
-
-
- }
- }
|