PHP-087 / 기초
FormRequest authorize()가 기본 true
왜 문제가 될까요?
생성된 기본 코드를 그대로 두면 누구나 해당 요청을 처리한다.
이렇게 수정하세요
php
public function authorize(): bool { return $this->user()->can('update', $this->route('post')); }