Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Laravel配置文件更新错误_Php_Laravel - Fatal编程技术网

Php Laravel配置文件更新错误

Php Laravel配置文件更新错误,php,laravel,Php,Laravel,我正在尝试在Laravel中复制个人资料页。这一切都很好,但当我点击“保存”以保存配置文件中的更改时,它显示的就像我一样 /** * Throw a method not allowed HTTP exception. * * @param array $others * @return void * * @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowe

我正在尝试在Laravel中复制个人资料页。这一切都很好,但当我点击“保存”以保存配置文件中的更改时,它显示的就像我一样

 /**
     * Throw a method not allowed HTTP exception.
     *
     * @param  array  $others
     * @return void
     *
     * @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
     */
    protected function methodNotAllowed(array $others)
    {
        throw new MethodNotAllowedHttpException($others);
    }

    /**
     * Get routes from the collection by method.
     *
     * @param  string|null  $method
     * @return array
     */
    public function get($method = null)
    {
        return is_null($method) ? $this->getRoutes() : Arr::get($this->routes, $method, []);
    }

    /**
     * Determine if the route collection contains a given named route.
没有争论。还有这个按摩 Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException 没有消息


由于某些原因,我无法从文件中导入代码,没有代码的人能帮忙吗?

您试图达到的控制器操作需要某种HTTP方法(GET、POST、PUT、DELETE等)。405表示您试图通过错误的方法访问该端点

检查路由配置以查看应该调用哪个方法。下面是一个请求删除方法的示例:

Route::delete('empresas/eliminar/{id}', [
        'as' => 'companiesDelete',
        'uses' => 'CompaniesController@delete'
]);

请参阅此帖子:

当我单击“保存”以保存配置文件中的更改时,它显示的是我的样子
。。。给你看什么?您包含的代码不是错误消息。显示单击“保存”时所看到的内容。