PHP-087 / 入门
FormRequest authorize() 默认返回 true
为什么存在问题?
保留生成的默认代码会使任何人都能处理该请求。
如何修复
php
public function authorize(): bool { return $this->user()->can('update', $this->route('post')); }