Laravel & LaravelCollective 第一个参数应该是字符串或整数

Laravel & LaravelCollective The first argument should be either a string or an integer

我正在尝试在我的 Laravel CRUD 应用程序中创建删除按钮。并出现错误:

(2/2) ErrorException array_key_exists(): The first argument should be either a string or an integer

我的看法:

{{!!Form::open(['action' => ['CompanyController@update', $company->id], 'method' => 'PUT'])!!}}
                            {{Form::input('Delete',['class'=>'btn btn-danger'])}}
                        {{!!Form::close()!!}}

我正在使用 Laravel 集体文档,它说我可以使用:

 Form::open(['action' => ['Controller@method', $user]])

但是我的代码有什么问题吗?

您必须提供密钥。 Collective 不会像我们在 Laravel.

上习惯的那样尝试猜测键名
Form::open(['action' => ['Controller@method', $user->id]])

上面这段代码显示了如何提供密钥:$user->id