Pārlūkot izejas kodu

Removed telescope

jquino 5 gadus atpakaļ
vecāks
revīzija
57f60917ce

+ 1
- 1
app/Providers/AppServiceProvider.php Parādīt failu

@@ -14,7 +14,7 @@ class AppServiceProvider extends ServiceProvider
14 14
     public function register()
15 15
     {
16 16
         if (app()->isLocal()) {
17
-            app()->register(TelescopeServiceProvider::class);
17
+            // app()->register(TelescopeServiceProvider::class);
18 18
         }
19 19
     }
20 20
 

+ 0
- 70
app/Providers/TelescopeServiceProvider.php Parādīt failu

@@ -1,70 +0,0 @@
1
-<?php
2
-
3
-namespace App\Providers;
4
-
5
-use Laravel\Telescope\Telescope;
6
-use Illuminate\Support\Facades\Gate;
7
-use Laravel\Telescope\IncomingEntry;
8
-use Laravel\Telescope\TelescopeApplicationServiceProvider;
9
-
10
-class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
11
-{
12
-    /**
13
-     * Register any application services.
14
-     *
15
-     * @return void
16
-     */
17
-    public function register()
18
-    {
19
-        // Telescope::night();
20
-
21
-        // $this->hideSensitiveRequestDetails();
22
-
23
-        Telescope::filter(function (IncomingEntry $entry) {
24
-            if ($this->app->isLocal()) {
25
-                return true;
26
-            }
27
-
28
-            return $entry->isReportableException() ||
29
-                   $entry->isFailedJob() ||
30
-                   $entry->isScheduledTask() ||
31
-                   $entry->hasMonitoredTag();
32
-        });
33
-    }
34
-
35
-    /**
36
-     * Prevent sensitive request details from being logged by Telescope.
37
-     *
38
-     * @return void
39
-     */
40
-    protected function hideSensitiveRequestDetails()
41
-    {
42
-        if ($this->app->isLocal()) {
43
-            return;
44
-        }
45
-
46
-        Telescope::hideRequestParameters(['_token']);
47
-
48
-        Telescope::hideRequestHeaders([
49
-            'cookie',
50
-            'x-csrf-token',
51
-            'x-xsrf-token',
52
-        ]);
53
-    }
54
-
55
-    /**
56
-     * Register the Telescope gate.
57
-     *
58
-     * This gate determines who can access Telescope in non-local environments.
59
-     *
60
-     * @return void
61
-     */
62
-    protected function gate()
63
-    {
64
-        // Gate::define('viewTelescope', function ($user) {
65
-        //     return in_array($user->email, [
66
-        //         //
67
-        //     ]);
68
-        // });
69
-    }
70
-}

+ 3
- 2
composer.json Parādīt failu

@@ -18,7 +18,6 @@
18 18
         "beyondcode/laravel-dump-server": "^1.0",
19 19
         "filp/whoops": "^2.0",
20 20
         "fzaninotto/faker": "^1.4",
21
-        "laravel/telescope": "^2.1",
22 21
         "mockery/mockery": "^1.0",
23 22
         "nunomaduro/collision": "^3.0",
24 23
         "phpunit/phpunit": "^7.5"
@@ -30,7 +29,9 @@
30 29
     },
31 30
     "extra": {
32 31
         "laravel": {
33
-            "dont-discover": []
32
+            "dont-discover": [
33
+                "laravel/telescope"
34
+            ]
34 35
         }
35 36
     },
36 37
     "autoload": {

+ 18
- 129
composer.lock Parādīt failu

@@ -4,7 +4,7 @@
4 4
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 5
         "This file is @generated automatically"
6 6
     ],
7
-    "content-hash": "5e4bda92ac08020500e9177182062530",
7
+    "content-hash": "290e3b855c274897254c0edf8fbcd746",
8 8
     "packages": [
9 9
         {
10 10
             "name": "dnoegel/php-xdg-base-dir",
@@ -2617,16 +2617,16 @@
2617 2617
         },
2618 2618
         {
2619 2619
             "name": "symfony/polyfill-mbstring",
2620
-            "version": "v1.11.0",
2620
+            "version": "v1.12.0",
2621 2621
             "source": {
2622 2622
                 "type": "git",
2623 2623
                 "url": "https://github.com/symfony/polyfill-mbstring.git",
2624
-                "reference": "fe5e94c604826c35a32fa832f35bd036b6799609"
2624
+                "reference": "b42a2f66e8f1b15ccf25652c3424265923eb4f17"
2625 2625
             },
2626 2626
             "dist": {
2627 2627
                 "type": "zip",
2628
-                "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fe5e94c604826c35a32fa832f35bd036b6799609",
2629
-                "reference": "fe5e94c604826c35a32fa832f35bd036b6799609",
2628
+                "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/b42a2f66e8f1b15ccf25652c3424265923eb4f17",
2629
+                "reference": "b42a2f66e8f1b15ccf25652c3424265923eb4f17",
2630 2630
                 "shasum": ""
2631 2631
             },
2632 2632
             "require": {
@@ -2638,7 +2638,7 @@
2638 2638
             "type": "library",
2639 2639
             "extra": {
2640 2640
                 "branch-alias": {
2641
-                    "dev-master": "1.11-dev"
2641
+                    "dev-master": "1.12-dev"
2642 2642
                 }
2643 2643
             },
2644 2644
             "autoload": {
@@ -2672,20 +2672,20 @@
2672 2672
                 "portable",
2673 2673
                 "shim"
2674 2674
             ],
2675
-            "time": "2019-02-06T07:57:58+00:00"
2675
+            "time": "2019-08-06T08:03:45+00:00"
2676 2676
         },
2677 2677
         {
2678 2678
             "name": "symfony/polyfill-php72",
2679
-            "version": "v1.11.0",
2679
+            "version": "v1.12.0",
2680 2680
             "source": {
2681 2681
                 "type": "git",
2682 2682
                 "url": "https://github.com/symfony/polyfill-php72.git",
2683
-                "reference": "ab50dcf166d5f577978419edd37aa2bb8eabce0c"
2683
+                "reference": "04ce3335667451138df4307d6a9b61565560199e"
2684 2684
             },
2685 2685
             "dist": {
2686 2686
                 "type": "zip",
2687
-                "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/ab50dcf166d5f577978419edd37aa2bb8eabce0c",
2688
-                "reference": "ab50dcf166d5f577978419edd37aa2bb8eabce0c",
2687
+                "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/04ce3335667451138df4307d6a9b61565560199e",
2688
+                "reference": "04ce3335667451138df4307d6a9b61565560199e",
2689 2689
                 "shasum": ""
2690 2690
             },
2691 2691
             "require": {
@@ -2694,7 +2694,7 @@
2694 2694
             "type": "library",
2695 2695
             "extra": {
2696 2696
                 "branch-alias": {
2697
-                    "dev-master": "1.11-dev"
2697
+                    "dev-master": "1.12-dev"
2698 2698
                 }
2699 2699
             },
2700 2700
             "autoload": {
@@ -2727,7 +2727,7 @@
2727 2727
                 "portable",
2728 2728
                 "shim"
2729 2729
             ],
2730
-            "time": "2019-02-06T07:57:58+00:00"
2730
+            "time": "2019-08-06T08:03:45+00:00"
2731 2731
         },
2732 2732
         {
2733 2733
             "name": "symfony/polyfill-php73",
@@ -3105,16 +3105,16 @@
3105 3105
         },
3106 3106
         {
3107 3107
             "name": "symfony/var-dumper",
3108
-            "version": "v4.3.2",
3108
+            "version": "v4.3.4",
3109 3109
             "source": {
3110 3110
                 "type": "git",
3111 3111
                 "url": "https://github.com/symfony/var-dumper.git",
3112
-                "reference": "45d6ef73671995aca565a1aa3d9a432a3ea63f91"
3112
+                "reference": "641043e0f3e615990a0f29479f9c117e8a6698c6"
3113 3113
             },
3114 3114
             "dist": {
3115 3115
                 "type": "zip",
3116
-                "url": "https://api.github.com/repos/symfony/var-dumper/zipball/45d6ef73671995aca565a1aa3d9a432a3ea63f91",
3117
-                "reference": "45d6ef73671995aca565a1aa3d9a432a3ea63f91",
3116
+                "url": "https://api.github.com/repos/symfony/var-dumper/zipball/641043e0f3e615990a0f29479f9c117e8a6698c6",
3117
+                "reference": "641043e0f3e615990a0f29479f9c117e8a6698c6",
3118 3118
                 "shasum": ""
3119 3119
             },
3120 3120
             "require": {
@@ -3177,7 +3177,7 @@
3177 3177
                 "debug",
3178 3178
                 "dump"
3179 3179
             ],
3180
-            "time": "2019-06-17T17:37:00+00:00"
3180
+            "time": "2019-08-26T08:26:39+00:00"
3181 3181
         },
3182 3182
         {
3183 3183
             "name": "tijsverkoyen/css-to-inline-styles",
@@ -3557,68 +3557,6 @@
3557 3557
             "time": "2016-01-20T08:20:44+00:00"
3558 3558
         },
3559 3559
         {
3560
-            "name": "laravel/telescope",
3561
-            "version": "v2.1",
3562
-            "source": {
3563
-                "type": "git",
3564
-                "url": "https://github.com/laravel/telescope.git",
3565
-                "reference": "d9c5c53d3a0c60dcd4ef3777884d0cf368eb3e6f"
3566
-            },
3567
-            "dist": {
3568
-                "type": "zip",
3569
-                "url": "https://api.github.com/repos/laravel/telescope/zipball/d9c5c53d3a0c60dcd4ef3777884d0cf368eb3e6f",
3570
-                "reference": "d9c5c53d3a0c60dcd4ef3777884d0cf368eb3e6f",
3571
-                "shasum": ""
3572
-            },
3573
-            "require": {
3574
-                "ext-json": "*",
3575
-                "laravel/framework": "~5.8.0|^6.0|^7.0",
3576
-                "moontoast/math": "^1.1",
3577
-                "php": "^7.1.3",
3578
-                "symfony/var-dumper": "^4.1"
3579
-            },
3580
-            "require-dev": {
3581
-                "orchestra/testbench": "^3.8|^4.0|^5.0"
3582
-            },
3583
-            "type": "library",
3584
-            "extra": {
3585
-                "branch-alias": {
3586
-                    "dev-master": "2.0-dev"
3587
-                },
3588
-                "laravel": {
3589
-                    "providers": [
3590
-                        "Laravel\\Telescope\\TelescopeServiceProvider"
3591
-                    ]
3592
-                }
3593
-            },
3594
-            "autoload": {
3595
-                "psr-4": {
3596
-                    "Laravel\\Telescope\\": "src/"
3597
-                }
3598
-            },
3599
-            "notification-url": "https://packagist.org/downloads/",
3600
-            "license": [
3601
-                "MIT"
3602
-            ],
3603
-            "authors": [
3604
-                {
3605
-                    "name": "Taylor Otwell",
3606
-                    "email": "taylor@laravel.com"
3607
-                },
3608
-                {
3609
-                    "name": "Mohamed Said",
3610
-                    "email": "mohamed@laravel.com"
3611
-                }
3612
-            ],
3613
-            "description": "An elegant debug assistant for the Laravel framework.",
3614
-            "keywords": [
3615
-                "debugging",
3616
-                "laravel",
3617
-                "monitoring"
3618
-            ],
3619
-            "time": "2019-08-30T11:58:27+00:00"
3620
-        },
3621
-        {
3622 3560
             "name": "mockery/mockery",
3623 3561
             "version": "1.2.2",
3624 3562
             "source": {
@@ -3684,55 +3622,6 @@
3684 3622
             "time": "2019-02-13T09:37:52+00:00"
3685 3623
         },
3686 3624
         {
3687
-            "name": "moontoast/math",
3688
-            "version": "1.1.2",
3689
-            "source": {
3690
-                "type": "git",
3691
-                "url": "https://github.com/ramsey/moontoast-math.git",
3692
-                "reference": "c2792a25df5cad4ff3d760dd37078fc5b6fccc79"
3693
-            },
3694
-            "dist": {
3695
-                "type": "zip",
3696
-                "url": "https://api.github.com/repos/ramsey/moontoast-math/zipball/c2792a25df5cad4ff3d760dd37078fc5b6fccc79",
3697
-                "reference": "c2792a25df5cad4ff3d760dd37078fc5b6fccc79",
3698
-                "shasum": ""
3699
-            },
3700
-            "require": {
3701
-                "ext-bcmath": "*",
3702
-                "php": ">=5.3.3"
3703
-            },
3704
-            "require-dev": {
3705
-                "jakub-onderka/php-parallel-lint": "^0.9.0",
3706
-                "phpunit/phpunit": "^4.7|>=5.0 <5.4",
3707
-                "satooshi/php-coveralls": "^0.6.1",
3708
-                "squizlabs/php_codesniffer": "^2.3"
3709
-            },
3710
-            "type": "library",
3711
-            "autoload": {
3712
-                "psr-4": {
3713
-                    "Moontoast\\Math\\": "src/Moontoast/Math/"
3714
-                }
3715
-            },
3716
-            "notification-url": "https://packagist.org/downloads/",
3717
-            "license": [
3718
-                "Apache-2.0"
3719
-            ],
3720
-            "authors": [
3721
-                {
3722
-                    "name": "Ben Ramsey",
3723
-                    "email": "ben@benramsey.com",
3724
-                    "homepage": "https://benramsey.com"
3725
-                }
3726
-            ],
3727
-            "description": "A mathematics library, providing functionality for large numbers",
3728
-            "homepage": "https://github.com/ramsey/moontoast-math",
3729
-            "keywords": [
3730
-                "bcmath",
3731
-                "math"
3732
-            ],
3733
-            "time": "2017-02-16T16:54:46+00:00"
3734
-        },
3735
-        {
3736 3625
             "name": "myclabs/deep-copy",
3737 3626
             "version": "1.9.1",
3738 3627
             "source": {

+ 0
- 1
config/app.php Parādīt failu

@@ -174,7 +174,6 @@ return [
174 174
         App\Providers\AuthServiceProvider::class,
175 175
         // App\Providers\BroadcastServiceProvider::class,
176 176
         App\Providers\EventServiceProvider::class,
177
-        // App\Providers\TelescopeServiceProvider::class,
178 177
         App\Providers\RouteServiceProvider::class,
179 178
 
180 179
     ],

+ 0
- 156
config/telescope.php Parādīt failu

@@ -1,156 +0,0 @@
1
-<?php
2
-
3
-use Laravel\Telescope\Watchers;
4
-use Laravel\Telescope\Http\Middleware\Authorize;
5
-
6
-return [
7
-
8
-    /*
9
-    |--------------------------------------------------------------------------
10
-    | Telescope Domain
11
-    |--------------------------------------------------------------------------
12
-    |
13
-    | This is the subdomain where Telescope will be accessible from. If the
14
-    | setting is null, Telescope will reside under the same domain as the
15
-    | application. Otherwise, this value will be used as the subdomain.
16
-    |
17
-    */
18
-
19
-    'domain' => env('TELESCOPE_DOMAIN', null),
20
-
21
-    /*
22
-    |--------------------------------------------------------------------------
23
-    | Telescope Path
24
-    |--------------------------------------------------------------------------
25
-    |
26
-    | This is the URI path where Telescope will be accessible from. Feel free
27
-    | to change this path to anything you like. Note that the URI will not
28
-    | affect the paths of its internal API that aren't exposed to users.
29
-    |
30
-    */
31
-
32
-    'path' => env('TELESCOPE_PATH', 'telescope'),
33
-
34
-    /*
35
-    |--------------------------------------------------------------------------
36
-    | Telescope Storage Driver
37
-    |--------------------------------------------------------------------------
38
-    |
39
-    | This configuration options determines the storage driver that will
40
-    | be used to store Telescope's data. In addition, you may set any
41
-    | custom options as needed by the particular driver you choose.
42
-    |
43
-    */
44
-
45
-    'driver' => env('TELESCOPE_DRIVER', 'database'),
46
-
47
-    'storage' => [
48
-        'database' => [
49
-            'connection' => env('DB_CONNECTION', 'mysql'),
50
-            'chunk' => 1000,
51
-        ],
52
-    ],
53
-
54
-    /*
55
-    |--------------------------------------------------------------------------
56
-    | Telescope Master Switch
57
-    |--------------------------------------------------------------------------
58
-    |
59
-    | This option may be used to disable all Telescope watchers regardless
60
-    | of their individual configuration, which simply provides a single
61
-    | and convenient way to enable or disable Telescope data storage.
62
-    |
63
-    */
64
-
65
-    'enabled' => env('TELESCOPE_ENABLED', true),
66
-
67
-    /*
68
-    |--------------------------------------------------------------------------
69
-    | Telescope Route Middleware
70
-    |--------------------------------------------------------------------------
71
-    |
72
-    | These middleware will be assigned to every Telescope route, giving you
73
-    | the chance to add your own middleware to this list or change any of
74
-    | the existing middleware. Or, you can simply stick with this list.
75
-    |
76
-    */
77
-
78
-    'middleware' => [
79
-        'web',
80
-        Authorize::class,
81
-    ],
82
-
83
-    /*
84
-    |--------------------------------------------------------------------------
85
-    | Ignored Paths & Commands
86
-    |--------------------------------------------------------------------------
87
-    |
88
-    | The following array lists the URI paths and Artisan commands that will
89
-    | not be watched by Telescope. In addition to this list, some Laravel
90
-    | commands, like migrations and queue commands, are always ignored.
91
-    |
92
-    */
93
-
94
-    'ignore_paths' => [
95
-        //
96
-    ],
97
-
98
-    'ignore_commands' => [
99
-        //
100
-    ],
101
-
102
-    /*
103
-    |--------------------------------------------------------------------------
104
-    | Telescope Watchers
105
-    |--------------------------------------------------------------------------
106
-    |
107
-    | The following array lists the "watchers" that will be registered with
108
-    | Telescope. The watchers gather the application's profile data when
109
-    | a request or task is executed. Feel free to customize this list.
110
-    |
111
-    */
112
-
113
-    'watchers' => [
114
-        Watchers\CacheWatcher::class => env('TELESCOPE_CACHE_WATCHER', true),
115
-
116
-        Watchers\CommandWatcher::class => [
117
-            'enabled' => env('TELESCOPE_COMMAND_WATCHER', true),
118
-            'ignore' => [],
119
-        ],
120
-
121
-        Watchers\DumpWatcher::class => env('TELESCOPE_DUMP_WATCHER', true),
122
-        Watchers\EventWatcher::class => env('TELESCOPE_EVENT_WATCHER', true),
123
-        Watchers\ExceptionWatcher::class => env('TELESCOPE_EXCEPTION_WATCHER', true),
124
-        Watchers\JobWatcher::class => env('TELESCOPE_JOB_WATCHER', true),
125
-        Watchers\LogWatcher::class => env('TELESCOPE_LOG_WATCHER', true),
126
-        Watchers\MailWatcher::class => env('TELESCOPE_MAIL_WATCHER', true),
127
-
128
-        Watchers\ModelWatcher::class => [
129
-            'enabled' => env('TELESCOPE_MODEL_WATCHER', true),
130
-            'events' => ['eloquent.*'],
131
-        ],
132
-
133
-        Watchers\NotificationWatcher::class => env('TELESCOPE_NOTIFICATION_WATCHER', true),
134
-
135
-        Watchers\QueryWatcher::class => [
136
-            'enabled' => env('TELESCOPE_QUERY_WATCHER', true),
137
-            'ignore_packages' => true,
138
-            'slow' => 100,
139
-        ],
140
-
141
-        Watchers\RedisWatcher::class => env('TELESCOPE_REDIS_WATCHER', true),
142
-
143
-        Watchers\RequestWatcher::class => [
144
-            'enabled' => env('TELESCOPE_REQUEST_WATCHER', true),
145
-            'size_limit' => env('TELESCOPE_RESPONSE_SIZE_LIMIT', 64),
146
-        ],
147
-
148
-        Watchers\GateWatcher::class => [
149
-            'enabled' => env('TELESCOPE_GATE_WATCHER', true),
150
-            'ignore_abilities' => [],
151
-            'ignore_packages' => true,
152
-        ],
153
-
154
-        Watchers\ScheduleWatcher::class => env('TELESCOPE_SCHEDULE_WATCHER', true),
155
-    ],
156
-];