Method not Allowed, but is there

Posted 4 months ago by dan3460

Normally i get this type of error when trying to hit as route because of misspelling or the method is the wrong one. I have been stuck on this one for more than an hour and i do not understand what is going on. Here is the section where i set up the route:

Route::get('/tables/languageNew', '[email protected]');
Route::post('/tables/languageNew', '[email protected]');
Route::get('/tables/languageEdit/{languageID)', '[email protected]'); <-- Trying to hit this one
Route::put('/tables/languageEdit/{languageID}', '[email protected]');
Route::delete('/tables/language/{languageID}', '[email protected]');

here is the call to the route:

<td class="d-flex justify-content-between">
    <a href="/tables/languageEdit/{{$language->language_id}}" class="btn btn-sm btn-info">Edit</a>
    <form action="/tables/language/{{$language->language_id}}" method="POST">
        @csrf @method('delete')
        <button type="submit" class="btn btn-sm btn-danger">Delete</button>

I'm calling the edit between the a tags.

and here are the headers from Chrome tools:

Request URL:
Request Method: GET
Status Code: 405 Method Not Allowed
Remote Address:
Referrer Policy: no-referrer-when-downgrade

What i'm not seeing? Thanks for the help,

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.