Skip to content

Commit

Permalink
Removed authorization in telescope, close #42
Browse files Browse the repository at this point in the history
  • Loading branch information
Jovert Lota Palonpon committed Apr 13, 2019
1 parent 97afe3e commit d53952e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
6 changes: 5 additions & 1 deletion app/Providers/TelescopeServiceProvider.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Providers;

use Carbon\Carbon;
use Laravel\Telescope\Telescope;
use Illuminate\Support\Facades\Gate;
use Laravel\Telescope\IncomingEntry;
Expand All @@ -16,7 +17,10 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
*/
public function register()
{
// Telescope::night();
// This will turn on night mode when past 05:30pm
if (now()->greaterThan(Carbon::createFromTime(17, 30, 00))) {
Telescope::night();
}

$this->hideSensitiveRequestDetails();

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"type": "project",
"require": {
"php": "^7.3",
"ext-bcmath": "*",
"ext-gd": "*",
"ext-json": "*",
"ext-mbstring": "*",
Expand Down
2 changes: 0 additions & 2 deletions config/telescope.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

use Laravel\Telescope\Watchers;
use Laravel\Telescope\Http\Middleware\Authorize;

return [

Expand Down Expand Up @@ -52,7 +51,6 @@

'middleware' => [
'web',
Authorize::class,
],

/*
Expand Down
2 changes: 1 addition & 1 deletion public/vendor/telescope/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/vendor/telescope/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/app.js": "/app.js?id=7fc4e151d161f8727fb0",
"/app.js": "/app.js?id=8776cf12ba6d7c72f145",
"/app.css": "/app.css?id=3c765b0499c4e3802fa7",
"/app-dark.css": "/app-dark.css?id=ff722ac6ef71817088c1"
}

0 comments on commit d53952e

Please sign in to comment.