我试图在我的Laravel CRUD应用程序中创建DELETE按钮。并且有一个错误:Laravel&LaravelCollective第一个参数应该是字符串或整数
(2/2) ErrorException array_key_exists(): The first argument should be either a string or an integer
我的观点:
{{!!Form::open(['action' => ['[email protected]', $company->id], 'method' => 'PUT'])!!}}
{{Form::input('Delete',['class'=>'btn btn-danger'])}}
{{!!Form::close()!!}}
我使用Laravel集体文档和它说我可以用:
Form::open(['action' => ['[email protected]', $user]])
但是,什么是错我的代码?
是'{{!!'有效吗? AFAIK,它不是'{{'或'{!!' – Devon
你好,你是对的。 {{!!无效 – qqmydarling