Php 控制器方法的Laravel缺少参数1

Php 控制器方法的Laravel缺少参数1,php,laravel,laravel-5,laravel-5.1,Php,Laravel,Laravel 5,Laravel 5.1,在编写器更新后,我遇到以下错误: Missing argument 1 for Modules\Documentation\Http\Controllers\Frontend\DocumentationController::show() 路线如下所示: $router->get('docs/{page}', ['as' => 'doc.show', 'uses' => 'Frontend\DocumentationController@show'])->where('

在编写器更新后,我遇到以下错误:

Missing argument 1 for Modules\Documentation\Http\Controllers\Frontend\DocumentationController::show()
路线如下所示:

$router->get('docs/{page}', ['as' => 'doc.show', 'uses' => 'Frontend\DocumentationController@show'])->where('page', '.*');
使用控制器方法:

public function show($page)
{
    try {
        $title = $this->documentation->getTitle($page);
    } catch (FileNotFoundException $e) {
        App::abort('404');
    }

    $subtitle = $this->documentation->getSubTitle($page);
    $content = $this->documentation->getContent($page);

    return view('doc.index', compact('content', 'title', 'subtitle'));
}
这是在编写器更新之前(使用)相同代码的示例:

我已尝试删除路由上的
->where()
方法,使参数为可选,没有任何更改


谢谢。

如果您将
show()
方法重命名为其他方法,会有帮助吗?例如
showSomething()
也有同样的问题。谢谢。你的
作曲家更新中更新了什么?
?我真傻,但我想这只是一个打字错误。删除包含“页面”的每段代码,再次键入“页面”,然后使用“复制/粘贴”填充删除的内容。有一天,我犯了这样的错误,把英语的“p”换成了俄语的“p”。他们看起来差不多,对吧?:)您的
$router
是哪个类的实例?