We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41a71fc commit 057cb0bCopy full SHA for 057cb0b
config/db-doc.php
@@ -19,4 +19,7 @@
19
'view' => null,
20
],
21
22
+ 'middleware' => [
23
+ 'auth',
24
+ ],
25
];
src/LaravelDbDoc.php
@@ -12,8 +12,6 @@ public static function routes()
12
{
13
if (app()->environment() != 'production') {
14
Route::get('doc/db-schema', function () {
15
- // Todo: define role
16
-
17
$format = request()->query('format', 'markdown');
18
$content = self::content($format);
@@ -28,7 +26,9 @@ public static function routes()
28
26
$content
29
27
),
30
]);
31
- })->middleware('auth', 'verified')->name('doc.db-schema');
+ })->middleware(
+ config('db-doc.middleware')
+ )->name('doc.db-schema');
32
}
33
34
0 commit comments