Axios.put retriving "500 (Internal Server Error)"

Posted 8 months ago by Vicente123

Hi, I'm trying to update data using axios.put method. It WAS WORKING till I moved the route into some routes group with prefix and middlewares. I'm pretty sure that I'm missing tokens. Code:

axios.put(self.postUrl.replace('%%ID%%', id), {
                    id: id,
                    title: $('#prov_program_name').val(),
                    description: $('#prov_program_description').val(),
                    session: $('#prov_program_session').val()

Route::group(['prefix' => 'rest', 'middleware' => 'auth.basic'], function () {
    Route::put('/rest/program-instances/update', '[email protected]')->name('rest.program_instances.update');


My form does not have a single token declared. But as i said, it was working before moving this route.

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.