method() !== 'POST') { throw new \Exception('This action requires POST.'); } } }