Skip to content

Commit c184087

Browse files
Merge pull request #16 from beelar/fix/laravel-octane-support
fix: always get input from current request instance
2 parents bd821b1 + e90a636 commit c184087

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/TaskHandler.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,7 @@ protected function validateToken($openIdToken)
7878
*/
7979
private function captureTask()
8080
{
81-
$input = file_get_contents('php://input');
82-
83-
if (!$input) {
84-
$input = request('input') ?: false;
85-
}
81+
$input = (string) (request()->getContent());
8682

8783
if (!$input) {
8884
throw new CloudTasksException('Could not read incoming task');

0 commit comments

Comments
 (0)