报错!This action is unauthorized.
public function destory(Topic $topic)
{
$this->authorize('destory',$topic);
$topic->delete();
return $this->response->noContent();
}
把destory改成update就可以了,是哪里没配置对么
单词拼错了!!!
推荐文章: