kumarayush's avatar

kumarayush wrote a comment+100 XP

2mos ago

Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException - Method Not Allowed

The PATCH method is not supported for route ideas/3. Supported methods: GET, HEAD, POST, DELETE.

PHP 8.5.3 Laravel 12.51.0 localhost:8000

Stack Trace

0 - vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php:131 1 - vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php:116 2 - vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php:42 3 - vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:184 4 - vendor/laravel/framework/src/Illuminate/Routing/Router.php:777 5 - vendor/laravel/framework/src/Illuminate/Routing/Router.php:764 6 - vendor/laravel/framework/src/Illuminate/Routing/Router.php:753 7 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:200 8 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180 9 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 10 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31 11 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219 12 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 13 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:51 14 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219 15 - vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php:27 16 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219 17 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:109 18 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219 19 - vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php:61 20 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219 21 - vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:58 22 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219 23 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/InvokeDeferredCallbacks.php:22 24 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219 25 - vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePathEncoding.php:26 26 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219 27 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137 28 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175 29 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144 30 - vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1220 31 - public/index.php:20 32 - vendor/laravel/framework/src/Illuminate/Foundation/resources/server.php:23

Request

PATCH /ideas/3

Headers

  • host: localhost:8000
  • user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:147.0) Gecko/20100101 Firefox/147.0
  • accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
  • accept-language: en-US,en;q=0.9
  • accept-encoding: gzip, deflate, br, zstd
  • content-type: application/x-www-form-urlencoded
  • content-length: 124
  • origin: http://localhost:8000
  • connection: keep-alive
  • referer: http://localhost:8000/ideas/3
  • cookie: XSRF-TOKEN=eyJpdiI6IkdkNVR4Ti9vREhXRGFUdCtVd2EzeGc9PSIsInZhbHVlIjoiMTZ3cm51VG9WZWR1UGhzVkQrYVVGRFA0OFR6V2I4c2NNcktHdzJlbnZ3UGZSRzZhMTZyRFVsM0FTSG5rMkgxc21OT1QyTzdkbmRZZVcrcEIrT0dqTWtTK2RZY203ZTFuL0crRmdJWTA0UTBXLy9XaTcwc25ZT25IQW8zSmM3eloiLCJtYWMiOiJhZmEyZGExNWRjMzhiZjU2MzRlYmQxMGMzYjRkYWZmMWJiZWQxMmE2N2MxYjMwNmRiYzQ2NTJhYzY5MmZjMDMzIiwidGFnIjoiIn0%3D; laravel-session=eyJpdiI6ImI0Q1lJQWNqMmEwUnpGWGZHOERMckE9PSIsInZhbHVlIjoicjdMeGxZYWlaWG1UWEtQRFpsRzNTcTZrTURIZGx5cW1aRS9tdE5ESUE1WXpCdXF0YXZ2SkR1THVYREJSWTVvOTFLMzVlZ0VRR0dQQkp4a2k5a1Nra29ia3VYc296bzU1Q2ViM3lzcndLaVZCdVBjbGwyckpjSmh4dnNYSkNmbUwiLCJtYWMiOiJhODM2Mjg3NjllMzI0ZTYzMDVhY2EwOTYwOWI4Y2EyNTk2MjhlMTc2OGRlZWM2ZGRkOTBmMmQ4M2U5YmJlOGIxIiwidGFnIjoiIn0%3D
  • upgrade-insecure-requests: 1
  • sec-fetch-dest: document
  • sec-fetch-mode: navigate
  • sec-fetch-site: same-origin
  • sec-fetch-user: ?1
  • priority: u=0, i

Route Context

No routing data available.

Route Parameters

No route parameter data available.

Database Queries

No database queries detected.

kumarayush's avatar

kumarayush wrote a comment+100 XP

2mos ago

FAIL Tests\Browser\CreateIdeaTest ⨯ it create a new idea 10.92s
────────────────────────────────────────────────────────────────────────────────────────
FAILED Tests\Browser\CreateIdeaTest > it create a new idea
Failed asserting that an array has the key 'title'.

at tests/Browser/CreateIdeaTest.php:25 21▕ ->debug() 22▕ ->click('@create-idea-modal-submit-button') 23▕ ->assertPathIs('/ideas'); 24▕ ➜ 25▕ expect($user->ideas()->first())->toMatchArray([ 26▕ 'title' => 'My First Idea', 27▕ 'description' => 'This is my first idea description', 28▕ 'status' => 'completed', 29▕ 'user_id' 1 tests/Browser/CreateIdeaTest.php:25

Tests: 1 failed (2 assertions) Duration: 11.45s

i'm getting this error