PHP-087 / 初級
FormRequest authorize() のデフォルト true
なぜ問題になるのか?
生成されたデフォルトコードをそのままにすると、誰でもそのリクエストを処理できます。
修正方法
php
public function authorize(): bool { return $this->user()->can('update', $this->route('post')); }