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 11a9682 commit 0bd40e5Copy full SHA for 0bd40e5
app/Livewire/VersionSwitcher.php
@@ -17,6 +17,10 @@ class VersionSwitcher extends Component
17
18
public function mount(array $versions)
19
{
20
+ // Since the props are always bound to the uri we fetch them
21
+ // from the route instead of prop drilling or adding
22
+ // single-use view data to the controller
23
+
24
throw_unless(
25
request()->route()->named('docs.show'),
26
ViewException::class,
0 commit comments