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 72b33a8 commit 767bb5cCopy full SHA for 767bb5c
app/Http/Controllers/DocsController.php
@@ -19,11 +19,11 @@ class DocsController extends Controller
19
*
20
* @return \Illuminate\View\View|
21
*/
22
- public function show(string $version = Docs::DEFAULT_VERSION, string $page = null)
+ public function show(string $version = Docs::DEFAULT_VERSION, ?string $page = null)
23
{
24
abort_if(
25
- $page === null,
26
- redirect(status: 300)->route('docs', ['version' => $version, 'page' => Docs::DEFAULT_DOCUMENT])
+ $page === null,
+ redirect(status: 300)->route('docs', ['version' => $version, 'page' => Docs::DEFAULT_DOCUMENT])
27
);
28
29
$docs = new Docs($version, $page);
0 commit comments